Haskell:逆向きの函数合成
code:hs
f :: a -> b
g :: b -> c
(.) :: (b -> c) -> (a -> b) -> a -> c
g . f :: a -> c
これの逆向きが欲しいとき
Control.Arrow
が使える
code:hs
f >>> g :: a -> c
Ref.icon
function composition with reverse syntax - Stack Overflow