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