Hi, I want to make method chains like this:
---- #lang racket (define (pipe init . procs) (foldl (lambda (x y) (x y)) init procs)) (pipe '(3 4) (lambda (l) (map sqr l)) (lambda (l) (apply + l)) sqrt) 5 ---- In racket libraries, rackjure module looks usable. But, rackjure's threading(~>) denys lambda. ---- #lang rackjure > (#fn(map sqr %) '(1 2)) '(1 4) > (~> '(1 2) #fn(map sqr %)) [Error] lambda: not an identifier, identifier with default, or keyword in: (1 2) > (define (sqrlst lst) (map sqr lst)) > (~> '(1 2) sqrlst) '(1 4) ---- In this case, what is the suitable solution? Thank you for reading. Taro -- You received this message because you are subscribed to the Google Groups "Racket Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to racket-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.