git.iko.soy/typeable/pandoc
on commonmark-github help sign in
typeable/pandoc/test/lhs-test.markdown
21 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``` {.sourceCode .literate .haskell}
8unsplit :: (Arrow a) => (b -> c -> d) -> a (b, c) d
9unsplit = arr . uncurry
10 -- arr (\op (x,y) -> x `op` y)
11```
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 f *** g = first f >>> second g
19Block quote:
21> foo bar