diff options
author | Masaya Tojo <masaya@tojo.tokyo> | 2024-06-11 02:10:37 +0900 |
---|---|---|
committer | Masaya Tojo <masaya@tojo.tokyo> | 2024-06-11 02:10:37 +0900 |
commit | 552cd6c999f3e44b13be88e45c4a8cb391eb40cf (patch) | |
tree | 15d9cea824cd5627a7c98ba866fb38a1d69457a6 /algebraic-structures.alternative.make.scm | |
parent | 53ccad935b368dbccadd6d64bedb9341f34415c3 (diff) |
Rename filename from `algebraic-structs` to `algebraic-structures`
Diffstat (limited to 'algebraic-structures.alternative.make.scm')
-rw-r--r-- | algebraic-structures.alternative.make.scm | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/algebraic-structures.alternative.make.scm b/algebraic-structures.alternative.make.scm new file mode 100644 index 0000000..df4e0f4 --- /dev/null +++ b/algebraic-structures.alternative.make.scm @@ -0,0 +1,10 @@ +(functor ((algebraic-structs alternative make) (A (pure map map2 alt empty))) + (pure map map2 alt empty guard) + (import (except scheme map apply) + (only (chicken base) void) + A) + + (define (guard b) + (if b + (pure (void)) + empty))) |