From 53ccad935b368dbccadd6d64bedb9341f34415c3 Mon Sep 17 00:00:00 2001 From: Masaya Tojo Date: Mon, 10 Jun 2024 13:00:54 +0900 Subject: Rename from `id` to `unit` --- algebraic-structs.monoid.make.fold.scm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'algebraic-structs.monoid.make.fold.scm') 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))) -- cgit v1.2.3