aboutsummaryrefslogtreecommitdiff
path: root/stdlib/source/lux/concurrency/actor.lux
diff options
context:
space:
mode:
authorEduardo Julian2018-08-02 23:50:44 -0400
committerEduardo Julian2018-08-02 23:50:44 -0400
commit5662ec063a1019518d5c1714d9c1ea42c7684737 (patch)
tree2a7b3984eba60be388f53f2debdfdf3f4d5afe61 /stdlib/source/lux/concurrency/actor.lux
parenta8979a7b1ed69740eb6c7c00c934e2fadd129322 (diff)
Replace the error-prone "n/range" calls with "indices".
Diffstat (limited to '')
-rw-r--r--stdlib/source/lux/concurrency/actor.lux6
1 files changed, 2 insertions, 4 deletions
diff --git a/stdlib/source/lux/concurrency/actor.lux b/stdlib/source/lux/concurrency/actor.lux
index f6a6fbe0d..a9154877e 100644
--- a/stdlib/source/lux/concurrency/actor.lux
+++ b/stdlib/source/lux/concurrency/actor.lux
@@ -334,12 +334,10 @@
g!actor-refs (: (List Code)
(if (list.empty? actor-vars)
(list)
- (|> actor-vars list.size dec
- (list.n/range 0) (list/map (|>> code.nat (~) ($) (`))))))
+ (|> actor-vars list.size list.indices (list/map (|>> code.nat (~) ($) (`))))))
ref-replacements (|> (if (list.empty? actor-vars)
(list)
- (|> actor-vars list.size dec
- (list.n/range 0) (list/map (|>> code.nat (~) ($) (`)))))
+ (|> actor-vars list.size list.indices (list/map (|>> code.nat (~) ($) (`)))))
(: (List Code))
(list.zip2 g!all-vars)
(: (List [Code Code])))