From 9c36db09b9a19cd70dfcc1ccce58f137df296d95 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hugo=20H=C3=B6rnquist?= Date: Wed, 24 Apr 2019 19:47:33 +0200 Subject: Remove take-drop-while, span already in SRFI-1. --- module/output/text.scm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'module/output/text.scm') diff --git a/module/output/text.scm b/module/output/text.scm index 274c79e2..5d8248f4 100644 --- a/module/output/text.scm +++ b/module/output/text.scm @@ -31,7 +31,7 @@ ;; str -> (str) (define* (justify-line line #:key (width 70)) (let recur ((lst (words line))) - (let* ((head tail (take-drop-while + (let* ((head tail (span (let ((w 0)) (lambda (word) ; Take words until we are above the limit. (< (mod/r! w = (+ 1 (string-length word))) -- cgit v1.2.3