3 ms·
FWIW there is of course pattern matching in Racket. The program is practically identical to the Haskell version. (define (concast as bs) (match as
by soegaard 6y ago
FWIW there is of course pattern matching in Racket.
The program is practically identical to the Haskell version.
(define (concast as bs)
(match as
['() bs]
[(cons a as) (cons a (concat as bs))]))