From f63cb2d26921bed57c2acbefd748579057ae5f28 Mon Sep 17 00:00:00 2001 From: Ricardo Wurmus Date: Tue, 4 Jun 2019 13:35:30 +0200 Subject: list: py-all, p-any: Use "when" and "unless". * modules/language/python/list.scm (py-all): Use "unless". (py-any): Use "when". --- modules/language/python/list.scm | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/modules/language/python/list.scm b/modules/language/python/list.scm index 35be4fc..2ac75c3 100644 --- a/modules/language/python/list.scm +++ b/modules/language/python/list.scm @@ -988,15 +988,13 @@ (define (py-all x) (for ((i : x)) () - (if (not i) - (break #f)) + (unless i (break #f)) #:final #t)) (define (py-any . x) (for ((i : x)) () - (if i - (break #t)) + (when i (break #t)) #:final #f)) -- cgit v1.2.3