projects
/
software
/
python-on-guile.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2cabb70
)
list: py-all, p-any: Use "when" and "unless".
author
Ricardo Wurmus
<rekado@elephly.net>
Tue, 4 Jun 2019 11:35:30 +0000
(13:35 +0200)
committer
Ricardo Wurmus
<rekado@elephly.net>
Tue, 4 Jun 2019 11:35:30 +0000
(13:35 +0200)
* modules/language/python/list.scm (py-all): Use "unless".
(py-any): Use "when".
modules/language/python/list.scm
patch
|
blob
|
history
diff --git
a/modules/language/python/list.scm
b/modules/language/python/list.scm
index 35be4fcaf3b564e9e4636c2f522d474bd31d5aec..2ac75c33a906b5c84e853c1029f9d9c970768624 100644
(file)
--- 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))