From 3d2b30f5c8bfb4363eeb676257c738dd596e6191 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hugo=20H=C3=B6rnquist?= Date: Mon, 27 Jul 2020 01:07:50 +0200 Subject: Merge mod!:s functionality into set! --- module/text/flow.scm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'module/text') diff --git a/module/text/flow.scm b/module/text/flow.scm index 3d97bed6..75ef5ccf 100644 --- a/module/text/flow.scm +++ b/module/text/flow.scm @@ -20,7 +20,7 @@ (string-concatenate/shared (merge words (map (lambda (n) (make-string n #\space)) space-list) - (let ((f #t)) (lambda _ (mod/r! f not))))))) + (let ((f #t)) (lambda _ (set/r! f = not))))))) @@ -32,7 +32,7 @@ (let* ((head tail (span (let ((w 0)) (lambda (word) ; Take words until we are above the limit. - (< (mod/r! w = (+ 1 (true-string-length word))) + (< (set/r! w = (+ 1 (true-string-length word))) width))) lst))) (cond ((null? tail) (list (unwords head))) ; Don't justify last line. -- cgit v1.2.3