diff options
author | Masaya Tojo <masaya@tojo.tokyo> | 2024-06-16 01:58:48 +0900 |
---|---|---|
committer | Masaya Tojo <masaya@tojo.tokyo> | 2024-06-16 01:58:48 +0900 |
commit | 5931a79a5a915035e01b9fb22a3edfde7895e424 (patch) | |
tree | 7704b515651e83db421ee342f02894bfa75557cb /algebraic-structures.private.list.alternative.scm | |
parent | 3f2efd08c5e93b2d20d3f4a32bdfec40a8b14730 (diff) |
Add list implementations
Diffstat (limited to 'algebraic-structures.private.list.alternative.scm')
-rw-r--r-- | algebraic-structures.private.list.alternative.scm | 9 |
1 files changed, 9 insertions, 0 deletions
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))) |