git.iko.soy/typeable/pandoc
on 1.14.0.3 help sign in
typeable/pandoc/tests/lhs-test.rst
23 lines 513 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.. code:: haskell
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 arrows on a
14pair of values (one arrow on the first item of the pair and one arrow on the
15second item of the pair).
17::
19 f *** g = first f >>> second g
21Block quote:
23 foo bar