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

Popular posts from this blog

resizing Telegram inline keyboard -

command line - How can a Python program background itself? -

android - How to prevent keyboard from closing when bottom dialog is open? -