fp-ts-recipes
fp-ts-recipes copied to clipboard
[request] How to loop in FP
Request
What are the best practices to do different kinds of loops in FP:
- for
- do/while
- while
Info
Add reasoning when to use map
, sequence
(T/S) functions, recursive functions
https://calebharris.github.io/fp_book_club_ts/chapter_2.html#writing-loops-functionally