diff options
author | Sean Whitton <spwhitton@spwhitton.name> | 2018-04-24 10:48:39 -0700 |
---|---|---|
committer | Sean Whitton <spwhitton@spwhitton.name> | 2018-04-24 10:48:39 -0700 |
commit | de5ee82ed0e287ada3a5b272d8365a04fe8e9f95 (patch) | |
tree | 126c941f08f4d1e2775a694d4fd7f7c859b4b81b /test/lhs-test.markdown+lhs | |
parent | abcbe3005117f90babc225ce958766845cf59d2b (diff) | |
parent | 5e6879dbf98eb5528c7f417b349118aadca40d71 (diff) |
New upstream version 2.1.2~dfsg
Diffstat (limited to 'test/lhs-test.markdown+lhs')
-rw-r--r-- | test/lhs-test.markdown+lhs | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/test/lhs-test.markdown+lhs b/test/lhs-test.markdown+lhs new file mode 100644 index 000000000..a6a894d22 --- /dev/null +++ b/test/lhs-test.markdown+lhs @@ -0,0 +1,19 @@ +lhs test +======== + +`unsplit` is an arrow that takes a pair of values and combines them to +return a single value: + +> unsplit :: (Arrow a) => (b -> c -> d) -> a (b, c) d +> unsplit = arr . uncurry +> -- arr (\op (x,y) -> x `op` y) + +`(***)` combines two arrows into a new arrow by running the two arrows on a +pair of values (one arrow on the first item of the pair and one arrow on the +second item of the pair). + + f *** g = first f >>> second g + +Block quote: + + > foo bar |