From 5931a79a5a915035e01b9fb22a3edfde7895e424 Mon Sep 17 00:00:00 2001 From: Masaya Tojo Date: Sun, 16 Jun 2024 01:58:48 +0900 Subject: Add list implementations --- algebraic-structures.private.list.zip.applicative.scm | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 algebraic-structures.private.list.zip.applicative.scm (limited to 'algebraic-structures.private.list.zip.applicative.scm') diff --git a/algebraic-structures.private.list.zip.applicative.scm b/algebraic-structures.private.list.zip.applicative.scm new file mode 100644 index 0000000..8713ef9 --- /dev/null +++ b/algebraic-structures.private.list.zip.applicative.scm @@ -0,0 +1,14 @@ +(module (algebraic-structures private list zip applicative) () + (import scheme + (rename (only (srfi 1) fold reduce) + (fold srfi:fold) + (reduce srfi:reduce)) + (only (chicken base) assert) + (chicken module)) + (export pure map2) + (reexport (algebraic-structures list functor)) + + (define (pure x) (list x)) + + (define (map2 f xs ys) + (map f xs ys))) -- cgit v1.2.3