Ah, that makes sense. That’s an interesting observation.
I also agree that list |> map f |> map g
is nicer than map (x: g (f x)) list
, and probably nicer than map (x: x|> f |> g) list
. Although map (g . f) list
still seems slightly simpler to me.
Although based on the current push-back from Robert in https://github.com/NixOS/rfcs/pull/148, I’m guessing there are quite a few people that feel like |>
is too big of an addition, let alone both |>
and a separate function composition operator. I’d be pretty happy if you were able to get even one of these operators into the Nix language.