aboutsummaryrefslogtreecommitdiff
path: root/stdlib/source/library/lux/data/collection/sequence.lux
diff options
context:
space:
mode:
Diffstat (limited to 'stdlib/source/library/lux/data/collection/sequence.lux')
-rw-r--r--stdlib/source/library/lux/data/collection/sequence.lux10
1 files changed, 5 insertions, 5 deletions
diff --git a/stdlib/source/library/lux/data/collection/sequence.lux b/stdlib/source/library/lux/data/collection/sequence.lux
index 285a65109..f786a9276 100644
--- a/stdlib/source/library/lux/data/collection/sequence.lux
+++ b/stdlib/source/library/lux/data/collection/sequence.lux
@@ -257,8 +257,8 @@
(All (_ a) (-> Index (Sequence a) (Try (Base a))))
(if (within_bounds? sequence idx)
(if (n.< (tail_off (the #size sequence)) idx)
- (loop [level (the #level sequence)
- hierarchy (the #root sequence)]
+ (loop (again [level (the #level sequence)
+ hierarchy (the #root sequence)])
(let [index (branch_idx (i64.right_shifted level idx))]
(if (array.lacks? index hierarchy)
(exception.except ..base_was_not_found [])
@@ -324,9 +324,9 @@
(do maybe.monad
[new_tail (base_for (n.- 2 sequence_size) sequence)
.let [[level' root'] (let [init_level (the #level sequence)]
- (loop [level init_level
- root (maybe.else (empty_hierarchy [])
- (without_tail sequence_size init_level (the #root sequence)))]
+ (loop (again [level init_level
+ root (maybe.else (empty_hierarchy [])
+ (without_tail sequence_size init_level (the #root sequence)))])
(with_expansions [<else> [level root]]
(if (n.> branching_exponent level)
(if (array.lacks? 1 root)