From e51a5f32bb8f23eb0fd27213cb36ce09a42a6386 Mon Sep 17 00:00:00 2001 From: Masaya Tojo Date: Sun, 16 Jun 2024 12:15:11 +0900 Subject: Add stream implementations --- algebraic-structures.private.stream.zip.applicative.scm | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 algebraic-structures.private.stream.zip.applicative.scm (limited to 'algebraic-structures.private.stream.zip.applicative.scm') diff --git a/algebraic-structures.private.stream.zip.applicative.scm b/algebraic-structures.private.stream.zip.applicative.scm new file mode 100644 index 0000000..8d56006 --- /dev/null +++ b/algebraic-structures.private.stream.zip.applicative.scm @@ -0,0 +1,11 @@ +(module (algebraic-structures private stream zip applicative) () + (import scheme + (srfi 41) + (chicken module)) + (export pure map2) + (reexport (algebraic-structures stream functor)) + + (define (pure x) (stream x)) + + (define (map2 f xs ys) + (stream-map f xs ys))) -- cgit v1.2.3