summaryrefslogtreecommitdiff
path: root/modules/language/python/list.scm
diff options
context:
space:
mode:
Diffstat (limited to 'modules/language/python/list.scm')
-rw-r--r--modules/language/python/list.scm6
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))