Blame test/lhs-test.markdown+lhs
|
Packit Service |
d2f85f |
lhs test
|
|
Packit Service |
d2f85f |
========
|
|
Packit Service |
d2f85f |
|
|
Packit Service |
d2f85f |
`unsplit` is an arrow that takes a pair of values and combines them to
|
|
Packit Service |
d2f85f |
return a single value:
|
|
Packit Service |
d2f85f |
|
|
Packit Service |
d2f85f |
> unsplit :: (Arrow a) => (b -> c -> d) -> a (b, c) d
|
|
Packit Service |
d2f85f |
> unsplit = arr . uncurry
|
|
Packit Service |
d2f85f |
> -- arr (\op (x,y) -> x `op` y)
|
|
Packit Service |
d2f85f |
|
|
Packit Service |
d2f85f |
`(***)` combines two arrows into a new arrow by running the two arrows on a
|
|
Packit Service |
d2f85f |
pair of values (one arrow on the first item of the pair and one arrow on the
|
|
Packit Service |
d2f85f |
second item of the pair).
|
|
Packit Service |
d2f85f |
|
|
Packit Service |
d2f85f |
f *** g = first f >>> second g
|
|
Packit Service |
d2f85f |
|
|
Packit Service |
d2f85f |
Block quote:
|
|
Packit Service |
d2f85f |
|
|
Packit Service |
d2f85f |
> foo bar
|