From f8583f9a85f54d0a7b4902d0d23b1b83f387b593 Mon Sep 17 00:00:00 2001 From: Masaya Tojo Date: Mon, 24 Jun 2024 00:06:23 +0900 Subject: Rename function from `<>` to `op` --- algebraic-structures.monoid.fold.scm | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'algebraic-structures.monoid.fold.scm') 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))) -- cgit v1.2.3