Typescript Functional Programming Vs Procedural Programming In C