aboutsummaryrefslogtreecommitdiff
path: root/src/boot/utility.boot
diff options
context:
space:
mode:
authorGabriel Dos Reis <gdr@axiomatics.org>2015-12-24 18:05:41 -0800
committerGabriel Dos Reis <gdr@axiomatics.org>2015-12-24 18:05:41 -0800
commit4dcf3f97d30a2b892716923ed4e916805ec87436 (patch)
tree5b41b966349e3c4f9afacef3a2ad60a38d28a8c1 /src/boot/utility.boot
parentbb81c833c0ff2ff8df936a0cd0182cf255729a41 (diff)
downloadopen-axiom-4dcf3f97d30a2b892716923ed4e916805ec87436.tar.gz
Replace FUNCALL with apply.
Diffstat (limited to 'src/boot/utility.boot')
-rw-r--r--src/boot/utility.boot6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/boot/utility.boot b/src/boot/utility.boot
index 37907145..4d4646a5 100644
--- a/src/boot/utility.boot
+++ b/src/boot/utility.boot
@@ -94,11 +94,11 @@ atomic? x ==
++ Return the last image of `f' if all images of elements in `l'
++ are non-nil. Otherwise return nil.
every?(f,l) ==
- and/[apply(f,x,nil) for x in l]
+ and/[apply(f,[x]) for x in l]
++ Return the first non-nil image of `f' of elements in `l'.
any?(f,l) ==
- or/[apply(f,x,nil) for x in l]
+ or/[apply(f,[x]) for x in l]
++ Return the `n' node prefixes of the list `l'. If `n' is negative,
++ take from the end of the list.
@@ -108,7 +108,7 @@ take(n,l) ==
++ Return the sublist of `l' whose elements have non-nil image by `f'.
takeWhile(f,l) ==
- [x for x in l while apply(f,x,nil)]
+ [x for x in l while apply(f,[x])]
++ Return the `n+1'th node and its successors of the list `l'.
++ If `n' is negative, drop from the end.