Racket : How can I turn a stream into a list? -
in racket, how can turn stream list?
i assumed there'd common interface, seems list oriented functions map don't work on streams. how can turn them lists?
there's procedure that: stream->list
. example:
(define s (stream 1 2 3 4 5)) (stream->list s) => '(1 2 3 4 5)
make sure check documentation, there several procedures manipulating streams mirror ones available lists.
Comments
Post a Comment