Quantcast
Channel: Comments on: Continuation kata
Viewing all articles
Browse latest Browse all 10

By: matthias

$
0
0
1. The Haskell one-liner is also available in PLT Scheme (DrScheme/Full Swindle): <pre> (list-of (list x y z) (x i high) (generate i) (loop (+ i 1)))) (fail))) (define *fail* (list (lambda (_) (error 'fail "no solution")))) (define (fail) [(begin0 (car *fail*) (set! *fail* (cdr *fail*))) 'continue]) </pre>

Viewing all articles
Browse latest Browse all 10

Trending Articles