robrix/Prelude — pull request #2 by robrix (2014-12-02 17:27:06+00:00)
Title: Compose

After discussion with @patrickt, I’ve opted to use the `>>>` and `<<<` operators as defined in Haskell’s [Control.Arrow](http://hackage.haskell.org/package/base-4.7.0.1/docs/Control-Arrow.html#g:2).

_Rationale:_ (f . g)(x) captures “f(g(x))” reasonably well, but this can make for poor readability. Since `.` doesn’t indicate directionality at all, it’s easy to forget that its operands (supplied left to right) are applied right to left. In contrast, `<<<` and `>>>` indicate the direction of application: `<<<` is right-to-left, and `>>>` is left-to-right.