also whenE (in reactive-0.10.3).<br><br><div class="gmail_quote">On Mon, Dec 8, 2008 at 3:46 PM, Conal Elliott <span dir="ltr"><<a href="mailto:conal@conal.net">conal@conal.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
I swapped the argument order for snapshot and a few other functions. For instance, <br><br> -- old type<br> snapshot :: Event a -> Behavior b -> Event (a,b)<br><br> -- new type<br> snapshot :: Behavior b -> Event a -> Event (a,b)<br>
<br>So that 'snapshot b' is an event transformer. This change makes other operations work out nicely when partially applied.<br><br>Take careful note of the argument and result orders. I'm not sure what's most memorable. I've kept to the convention that the additional info is in the second half of the result. Also a bit odd:<br>
<br> snapshotWith :: (a -> b -> c) -> Behavior b -> Event a -> Event c<br><br>The complete list of argument-swappedfns: snap, snapshot, snapshot_, snapRemainderE, splitE (watch out).<br><br>Libraries affected: reactive, reactive-glut, reactive-fieldtrip.<br>
<font color="#888888">
<br> - Conal<br><br>
</font></blockquote></div><br>