git.iko.soy/typeable/pandoc
on 1.15.0.3 help sign in
typeable/pandoc/tests/lhs-test.rst+lhs
21 lines 488 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::
17 f *** g = first f >>> second g
19Block quote:
21 foo bar