diff options
author | Masaya Tojo <masaya@tojo.tokyo> | 2024-06-10 13:00:54 +0900 |
---|---|---|
committer | Masaya Tojo <masaya@tojo.tokyo> | 2024-06-10 13:00:54 +0900 |
commit | 53ccad935b368dbccadd6d64bedb9341f34415c3 (patch) | |
tree | f8697032f435a5a615b04231f1337c8f978d41d1 /algebraic-structs.monoid.make.fold.scm | |
parent | ab601b9f1fd150c249cf3e8aade6c904d49562d0 (diff) |
Rename from `id` to `unit`
Diffstat (limited to 'algebraic-structs.monoid.make.fold.scm')
-rw-r--r-- | algebraic-structs.monoid.make.fold.scm | 4 |
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))) |