3 ms·
I must be missing something, but in Haskell this “typed pipe” (which is just reverse application) already exists in the base package as Data.Function.&. (&)
by yakshaving_jgt 4y ago
I must be missing something, but in Haskell this “typed pipe” (which is just reverse application) already exists in the base package as Data.Function.&.
(&) :: a -> (a -> b) -> b
- siknad 4y ago> that can accept any number of functions So, `(a -> b) -> (b -> c) -> (c -> d) -> ... -> a -> z`.
- yakshaving_jgt 4y agoAh, right. In that case I suppose you'd want some kind of fold.