aboutsummaryrefslogtreecommitdiff
path: root/algebraic-structures.private.vector.zip.applicative.scm
diff options
context:
space:
mode:
authorMasaya Tojo <masaya@tojo.tokyo>2024-06-16 15:14:13 +0900
committerMasaya Tojo <masaya@tojo.tokyo>2024-06-16 15:14:13 +0900
commitc2f4dde340185a4b42beacd46355f94ae41e25e4 (patch)
treebf269e4fa29a24422ddd34670efe03bd3f79d0f9 /algebraic-structures.private.vector.zip.applicative.scm
parentded31df310122b0252c69bff90b915c3e5b0ad20 (diff)
Add vector implementations
Diffstat (limited to 'algebraic-structures.private.vector.zip.applicative.scm')
-rw-r--r--algebraic-structures.private.vector.zip.applicative.scm11
1 files changed, 11 insertions, 0 deletions
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)))