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.alternative.scm | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 algebraic-structures.private.list.alternative.scm (limited to 'algebraic-structures.private.list.alternative.scm') diff --git a/algebraic-structures.private.list.alternative.scm b/algebraic-structures.private.list.alternative.scm new file mode 100644 index 0000000..a386e81 --- /dev/null +++ b/algebraic-structures.private.list.alternative.scm @@ -0,0 +1,9 @@ +(module (algebraic-structures private list alternative) (alt empty) + (import (except scheme map apply) + (chicken module)) + (reexport (algebraic-structures list applicative)) + + (define empty '()) + + (define (alt xs ys) + (append xs ys))) -- cgit v1.2.3