git.iko.soy/typeable/pandoc
on 2.9 help sign in
typeable/pandoc/test/lhs-test.markdown+lhs
19 lines 479 B history raw
1lhs test
2========
4`unsplit` is an arrow that takes a pair of values and combines them to
5return a single value:
7> unsplit :: (Arrow a) => (b -> c -> d) -> a (b, c) d
8> unsplit = arr . uncurry
9> -- arr (\op (x,y) -> x `op` y)
11`(***)` combines two arrows into a new arrow by running the two arrows on a
12pair of values (one arrow on the first item of the pair and one arrow on the
13second item of the pair).
15 f *** g = first f >>> second g
17Block quote:
19 > foo bar