aboutsummaryrefslogtreecommitdiff
path: root/algebraic-structures.monoid.fold.scm
diff options
context:
space:
mode:
Diffstat (limited to 'algebraic-structures.monoid.fold.scm')
-rw-r--r--algebraic-structures.monoid.fold.scm8
1 files changed, 4 insertions, 4 deletions
diff --git a/algebraic-structures.monoid.fold.scm b/algebraic-structures.monoid.fold.scm
index 73fc64c..037251f 100644
--- a/algebraic-structures.monoid.fold.scm
+++ b/algebraic-structures.monoid.fold.scm
@@ -1,12 +1,12 @@
-(functor ((algebraic-structures monoid fold) (M (<> unit)) (F (fold))) (fold fold-map)
+(functor ((algebraic-structures monoid fold) (M (op unit)) (F (fold))) (fold fold-map)
(import (except scheme length)
- (only M <> unit)
+ (only M op unit)
(rename (only F fold) (fold foldable:fold)))
- (define (fold x) (foldable:fold <> unit x))
+ (define (fold x) (foldable:fold op unit x))
(define (fold-map f x)
(foldable:fold (lambda (x acc)
- (<> (f x) acc))
+ (op (f x) acc))
unit
x)))