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