aboutsummaryrefslogtreecommitdiff
path: root/algebraic-structures.private.vector.zip.applicative.scm
diff options
context:
space:
mode:
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)))