From 9080b0a664ab36bf271fe042e3dc446727b18eff Mon Sep 17 00:00:00 2001 From: Masaya Tojo Date: Sat, 15 Jun 2024 03:44:57 +0900 Subject: Add fold-map function --- algebraic-structures.monoid.fold.scm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'algebraic-structures.monoid.fold.scm') diff --git a/algebraic-structures.monoid.fold.scm b/algebraic-structures.monoid.fold.scm index 5e176f2..bb74e4a 100644 --- a/algebraic-structures.monoid.fold.scm +++ b/algebraic-structures.monoid.fold.scm @@ -1,4 +1,4 @@ -(functor ((algebraic-structures monoid fold) (M (<> unit)) (F (fold))) (fold) +(functor ((algebraic-structures monoid fold) (M (<> unit)) (F (fold))) (fold fold-map) (import scheme M (rename F (fold foldable:fold))) (define (fold x) (foldable:fold <> unit x)) -- cgit v1.2.3