diff options
author | Ricardo Wurmus <rekado@elephly.net> | 2019-06-04 13:35:30 +0200 |
---|---|---|
committer | Ricardo Wurmus <rekado@elephly.net> | 2019-06-04 13:35:30 +0200 |
commit | f63cb2d26921bed57c2acbefd748579057ae5f28 (patch) | |
tree | d5f4dd231265c65db2ab75841f536ffcf485c701 /modules | |
parent | 2cabb70d922e4f269adae88931261ae14ee43eb2 (diff) |
list: py-all, p-any: Use "when" and "unless".
* modules/language/python/list.scm (py-all): Use "unless".
(py-any): Use "when".
Diffstat (limited to 'modules')
-rw-r--r-- | modules/language/python/list.scm | 6 |
1 files 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)) |