Code sample is written in Typescript and transpiled via webpack.
You must have nodejs in order to run this sample.
-
Install the required node modules
npm install
-
Transpile the typescript application.
npm run webpack
Output will go into the bin folder.
-
Run the application from the root folder. The first argument is the number untill which to compute the Fibonacci sequence.
.\fib.cmd 25
There are 2 versions of Fibonacci.
- Standard recursive
- Reactive Extensions version (just for fun).