<div dir="ltr">Hello, with the new feature of generic type in slot we can make Higher-order functions in Lisaac :<br clear="all"><div class="gmail_quote"><div dir="ltr"><br><br>OCaml :<br><br>let compose f g = function x -> f (g x);;<br>
val compose : ('a -> 'b) -> ('c -> 'a) -> 'c -> 'b = <fun><br>
<br><br><br>Lisaac : <br><br>- compose b1 : BLOCK{E;R} with b2 : BLOCK{F;E} for x : F : R <-<br>(<br> b1.value (b2.value x)<br>);<br><br><br>Beautiful, isn't it ? :-)<br><br>P-A<br><br>-- <br>---------------------<br>
Isaac Project - <a href="http://isaacproject.u-strasbg.fr/" target="_blank">http://isaacproject.u-strasbg.fr/</a><br>
</div>
</div>
</div>