From 552cd6c999f3e44b13be88e45c4a8cb391eb40cf Mon Sep 17 00:00:00 2001 From: Masaya Tojo Date: Tue, 11 Jun 2024 02:10:37 +0900 Subject: Rename filename from `algebraic-structs` to `algebraic-structures` --- algebraic-structures.monoid.make.fold.scm | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 algebraic-structures.monoid.make.fold.scm (limited to 'algebraic-structures.monoid.make.fold.scm') diff --git a/algebraic-structures.monoid.make.fold.scm b/algebraic-structures.monoid.make.fold.scm new file mode 100644 index 0000000..05a1754 --- /dev/null +++ b/algebraic-structures.monoid.make.fold.scm @@ -0,0 +1,4 @@ +(functor ((algebraic-structs monoid make fold) (M (op unit)) (F (foldl foldr))) (fold) + (import scheme M F) + + (define (fold x) (foldl op unit x))) -- cgit v1.2.3