Summing Up
ReasonML gives you the ability to deal with data en masse with tuples, lists, and arrays. You’ve seen how map, keep, and reduce, either alone or in combination, make it easy for you to transform collections.
In the next chapter, we’ll investigate recursion, a technique that lets you fine-tune the processing of collections and simplify the way you express algorithms. You’ll also see how recursion solves the problem of the extra comma and space that we saw on.
Footnotes
- [22]
-
https://bucklescript.github.io/bucklescript/api/Belt.List.html
- [23]
-
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Spread_syntax
- [24]
-
https://bucklescript.github.io/bucklescript/api/Js.Array.html
- [25]
-
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access