aboutsummaryrefslogtreecommitdiff
path: root/src/boot/utility.boot
diff options
context:
space:
mode:
Diffstat (limited to 'src/boot/utility.boot')
-rw-r--r--src/boot/utility.boot5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/boot/utility.boot b/src/boot/utility.boot
index 294f9d71..42bbbf00 100644
--- a/src/boot/utility.boot
+++ b/src/boot/utility.boot
@@ -107,9 +107,8 @@ takeWhile(f,l) ==
++ If `n' is negative, drop from the end.
drop(n,l) ==
n >= 0 =>
- while n > 0 and l is [.,:l] repeat
- n := n - 1
- l
+ for . in 1..n while l is [.,:l] repeat nil
+ l@%List(%Thing)
take(#l+n,l)
copyTree t ==