I just want to add that I find the syntax extremely confusing and counter intuitive.

I thought it was just me, or that I was missed something. But it looks like I'm not the only one.


On 7 April 2014 21:58, Kim-Ee Yeoh <ky3@atamo.com> wrote:

On Mon, Apr 7, 2014 at 11:02 PM, ducis <ducis_cn@126.com> wrote:
It lets your write lambdas with 'slots' without inventing names for the parameters.
[s| ı + ı |]  =  \x y -> x+y

I have no background in this 'slot lambda' and a search reveals this package as the only hit.

Which may explain why I find the example given confusing. Why would [s| 1+1 |] not be equivalent to \x->x+x ?



-- Kim-Ee

_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe




--
Alois Cochard
http://aloiscochard.blogspot.com
http://twitter.com/aloiscochard
http://github.com/aloiscochard