[Cuis-dev] curried blocks

Mariano Montone marianomontone at gmail.com
Sat Aug 3 12:12:08 PDT 2024


El 3/8/24 a las 15:01, ken.dickey--- via Cuis-dev escribió:
> As a long-time Scheme programmer (circa 1980), I have never found a 
> real use for currying in industrial applications. 

I personally use it in my Lisp code, together with compose and "pipe".

(->(mm-api:request(api-client) #?"/channels/${channel}/posts") 
(access:posts) (sort#'< :key(compose(rcurry#'access :create--at) #'cdr)))

Perhaps because LAMBDA is less concise than a Smalltalk block. But in 
anycase it is more about style than "usefulness" IMO.

Mariano
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cuis.st/mailman/archives/cuis-dev/attachments/20240803/f31bbe99/attachment.htm>


More information about the Cuis-dev mailing list