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.monad.scm | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 algebraic-structures.private.list.monad.scm (limited to 'algebraic-structures.private.list.monad.scm') diff --git a/algebraic-structures.private.list.monad.scm b/algebraic-structures.private.list.monad.scm new file mode 100644 index 0000000..96da332 --- /dev/null +++ b/algebraic-structures.private.list.monad.scm @@ -0,0 +1,8 @@ +(module (algebraic-structures private list monad) (>>=) + (import (except scheme map apply) + (chicken module) + (only (srfi 1) append-map)) + (reexport (algebraic-structures list applicative)) + + (define (>>= xs f) + (append-map f xs))) -- cgit v1.2.3