[ prog / sol / mona ]

prog


cddr

21 2024-08-19 12:43 *

>>20
thanks, i hadn't seen progv before. using functions is interesting as i suspect all list destructuring mechanisms could be decomposed into lambdas, for instance a pattern [(a (b c) d ...) (list a c)] could be compiled to

(apply
 (lambda (a bc . d)
   (apply
    (lambda (b c) (list a c)) bc))
 '(1 (2 3) 4))

returning (1 3)

30


VIP:

do not edit these