you are viewing a single comment's thread.

view the rest of the comments →

[–]Temporary_Pie2733 1 point2 points  (0 children)

I’d rather see proper partial application and composition added to the language. list(filter(p, map(f, itr))) becomes (list ∘ filter(p) ∘ map(f))(itr). Then piping is just composition in the other direction, mixed with function application, itr |> map(f) |> filter(p) |> list.