pull/23/head
Matthew Butterick 5 years ago
parent 7547324037
commit 310651e374

@ -15,10 +15,11 @@
tok)) tok))
(define (parse src toks) (define (parse src toks)
(define heptatoks (let loop ([toks toks][acc null]) (define heptatoks
(if (empty? toks) (let loop ([toks toks][acc null])
(reverse acc) (if (empty? toks)
(loop (drop toks 7) (cons (take toks 7) acc))))) (reverse acc)
(loop (drop toks 7) (cons (take toks 7) acc)))))
(for/list ([heptatok (in-list heptatoks)]) (for/list ([heptatok (in-list heptatoks)])
(integer->char (integer->char
(for/sum ([val (in-list heptatok)] (for/sum ([val (in-list heptatok)]

Loading…
Cancel
Save