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/macro/poly/json.lux | |
parent | a8979a7b1ed69740eb6c7c00c934e2fadd129322 (diff) |
Replace the error-prone "n/range" calls with "indices".
Diffstat (limited to '')
-rw-r--r-- | stdlib/source/lux/macro/poly/json.lux | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/stdlib/source/lux/macro/poly/json.lux b/stdlib/source/lux/macro/poly/json.lux index 9eabdc816..f1a5a840a 100644 --- a/stdlib/source/lux/macro/poly/json.lux +++ b/stdlib/source/lux/macro/poly/json.lux @@ -163,8 +163,8 @@ (do @ [g!encoders (poly.tuple (p.many Codec<JSON,?>//encode)) #let [g!_ (code.local-identifier "_______") - g!members (|> (list.size g!encoders) dec - (list.n/range 0) + g!members (|> (list.size g!encoders) + list.indices (list/map (|>> nat/encode code.local-identifier)))]] (wrap (` (: (~ (@JSON//encode inputT)) (function ((~ g!_) [(~+ g!members)]) |