aboutsummaryrefslogtreecommitdiff
path: root/algebraic-structs.monoid.make.fold.scm
diff options
context:
space:
mode:
authorMasaya Tojo <masaya@tojo.tokyo>2024-06-10 13:00:54 +0900
committerMasaya Tojo <masaya@tojo.tokyo>2024-06-10 13:00:54 +0900
commit53ccad935b368dbccadd6d64bedb9341f34415c3 (patch)
treef8697032f435a5a615b04231f1337c8f978d41d1 /algebraic-structs.monoid.make.fold.scm
parentab601b9f1fd150c249cf3e8aade6c904d49562d0 (diff)
Rename from `id` to `unit`
Diffstat (limited to 'algebraic-structs.monoid.make.fold.scm')
-rw-r--r--algebraic-structs.monoid.make.fold.scm4
1 files changed, 2 insertions, 2 deletions
diff --git a/algebraic-structs.monoid.make.fold.scm b/algebraic-structs.monoid.make.fold.scm
index 995bae5..05a1754 100644
--- a/algebraic-structs.monoid.make.fold.scm
+++ b/algebraic-structs.monoid.make.fold.scm
@@ -1,4 +1,4 @@
-(functor ((algebraic-structs monoid make fold) (M (op id)) (F (foldl foldr))) (fold)
+(functor ((algebraic-structs monoid make fold) (M (op unit)) (F (foldl foldr))) (fold)
(import scheme M F)
- (define (fold x) (foldl op id x)))
+ (define (fold x) (foldl op unit x)))