aboutsummaryrefslogtreecommitdiff
path: root/algebraic-structures.monoid.fold.scm
diff options
context:
space:
mode:
authorMasaya Tojo <masaya@tojo.tokyo>2024-06-24 00:06:23 +0900
committerMasaya Tojo <masaya@tojo.tokyo>2024-06-24 00:06:23 +0900
commitf8583f9a85f54d0a7b4902d0d23b1b83f387b593 (patch)
tree266eed4c18affaeac756dee300064e55f515d83b /algebraic-structures.monoid.fold.scm
parent6464288c0518db387657a16082fe541c253c463a (diff)
Rename function from `<>` to `op`
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)))