diff options
author | Hugo Hörnquist <hugo@lysator.liu.se> | 2020-05-14 02:04:14 +0200 |
---|---|---|
committer | Hugo Hörnquist <hugo@lysator.liu.se> | 2020-05-14 02:04:14 +0200 |
commit | d64575ff1f084ab6a157732372d76cd5851974f0 (patch) | |
tree | a662b983247804c1f51561fb99e20f672a466f9b /module | |
parent | Week day limiter working? (diff) | |
download | calp-d64575ff1f084ab6a157732372d76cd5851974f0.tar.gz calp-d64575ff1f084ab6a157732372d76cd5851974f0.tar.xz |
Add stream->values.
Diffstat (limited to '')
-rw-r--r-- | module/srfi/srfi-41/util.scm | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/module/srfi/srfi-41/util.scm b/module/srfi/srfi-41/util.scm index dcd31973..0aa4ae9a 100644 --- a/module/srfi/srfi-41/util.scm +++ b/module/srfi/srfi-41/util.scm @@ -72,6 +72,9 @@ (define-public (stream-remove pred stream) (stream-filter (negate pred) stream)) +(define-public (stream->values stream) + (apply values (stream->list stream))) + ;; Evaluates @var{body} in a context where most list fundamentals are ;; replaced by stream alternatives. ;; commented defifinitions are items which could be included, but for |