In the book "The Craft of Function Programming" the symbol '>.>' joins functions together, opposite the direction of '.'. But when I implemented it using ghci, it shows the error '>.>' out of scope. Why? Is it an old notation that is not used anymore?
>.>
is not defined by default, but you could define it yourself:
infixl 9 >.>
(>.>) = flip (.)
or equivalently,
infixl 9 >.>
f >.> g = g . f
(I gave the fixity declaration based on the infixr 9 .
in the Prelude.)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With