3 ms·
> For example, when using FP in other languages I worry about how the functions I stack together to evaluate lists are implemented. I'm only speaking for langu
by edgyswingset 11y ago
> For example, when using FP in other languages I worry about how the functions I stack together to evaluate lists are implemented.
I'm only speaking for languages I know:
- C# LINQ API via IEnumerable<T> is lazy (aside from a few like Min/Max)
- F# is lazy for any Seq functions or the Lazy() computation
- Clojure is lazy for Sequence functions
You can verify all three by looking at the source on Github if you'd like.
- V-2 11y agoA big loser here (in my opinion) is Kotlin, whose equivalent of LINQ doesn't support deferred evaluation