Re:Generalizing 'jq' and Traversal Systems using optics and ...
by mcaruso on Thursday October 08, 2020 @10:24AM
(#24719322)
Let's take a look at how we might write a function like `map` the (pure) functional way in a language like JS:
We're not keeping track of any state here. Using recursion you don't need to keep track of the current element in the list for example (when you run this on a physical machine it will of course, but not at the conceptual level).
[ Parent
| on HN ]
There are no comments on this comment yet.