aboutsummaryrefslogtreecommitdiff
path: root/algebraic-structures.monad.list.base.scm
diff options
context:
space:
mode:
authorMasaya Tojo <masaya@tojo.tokyo>2024-06-11 02:10:37 +0900
committerMasaya Tojo <masaya@tojo.tokyo>2024-06-11 02:10:37 +0900
commit552cd6c999f3e44b13be88e45c4a8cb391eb40cf (patch)
tree15d9cea824cd5627a7c98ba866fb38a1d69457a6 /algebraic-structures.monad.list.base.scm
parent53ccad935b368dbccadd6d64bedb9341f34415c3 (diff)
Rename filename from `algebraic-structs` to `algebraic-structures`
Diffstat (limited to 'algebraic-structures.monad.list.base.scm')
-rw-r--r--algebraic-structures.monad.list.base.scm7
1 files changed, 7 insertions, 0 deletions
diff --git a/algebraic-structures.monad.list.base.scm b/algebraic-structures.monad.list.base.scm
new file mode 100644
index 0000000..a7305a0
--- /dev/null
+++ b/algebraic-structures.monad.list.base.scm
@@ -0,0 +1,7 @@
+(module (algebraic-structs monad list base) (pure map map2 >>=)
+ (import (except scheme map)
+ (algebraic-structs applicative list)
+ (only (srfi 1) append-map))
+
+ (define (>>= lst f)
+ (append-map f lst)))