2009-07-03 03:05:29 +00:00
<div id="lhs-test"
><h1
>lhs test</h1
><p
><code
>unsplit</code
> is an arrow that takes a pair of values and combines them to return a single value:</p
2009-11-21 04:40:59 +00:00
><pre class="sourceCode haskell"
2009-07-03 03:05:29 +00:00
><code
2009-11-21 04:40:59 +00:00
><span class="Special"
>> </span
2009-07-03 03:05:29 +00:00
><span class="Function FunctionDefinition"
2009-11-21 04:40:59 +00:00
>unsplit ::</span
2009-07-03 03:05:29 +00:00
><span class="Normal NormalText"
> (Arrow a) => (b -> c -> d) -> a (b, c) d</span
><br
2009-11-21 04:40:59 +00:00
/><span class="Special"
>> </span
2009-07-03 03:05:29 +00:00
><span class="Normal NormalText"
2009-11-21 04:40:59 +00:00
>unsplit = arr . </span
2009-07-03 03:05:29 +00:00
><span class="Function"
>uncurry</span
><span class="Normal NormalText"
> </span
><br
2009-11-21 04:40:59 +00:00
/><span class="Special"
>> </span
2009-07-03 03:05:29 +00:00
><span class="Normal NormalText"
2009-11-21 04:40:59 +00:00
> </span
2009-07-03 03:05:29 +00:00
><span class="Comment"
>-- arr (\op (x,y) -> x `op` y) </span
><br
/></code
></pre
><p
><code
>(***)</code
> 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).</p
><pre
><code
>f *** g = first f >>> second g
2009-02-14 04:08:06 +00:00
</code
2009-07-03 03:05:29 +00:00
></pre
><p
>Block quote:</p
><blockquote
><p
>foo bar</p
></blockquote
></div
2009-02-14 04:08:06 +00:00
>