diff options
author | Eduardo Julian | 2018-08-02 23:50:44 -0400 |
---|---|---|
committer | Eduardo Julian | 2018-08-02 23:50:44 -0400 |
commit | 5662ec063a1019518d5c1714d9c1ea42c7684737 (patch) | |
tree | 2a7b3984eba60be388f53f2debdfdf3f4d5afe61 /stdlib/source/lux/concurrency/actor.lux | |
parent | a8979a7b1ed69740eb6c7c00c934e2fadd129322 (diff) |
Replace the error-prone "n/range" calls with "indices".
Diffstat (limited to '')
-rw-r--r-- | stdlib/source/lux/concurrency/actor.lux | 6 |
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]))) |