From 5662ec063a1019518d5c1714d9c1ea42c7684737 Mon Sep 17 00:00:00 2001 From: Eduardo Julian Date: Thu, 2 Aug 2018 23:50:44 -0400 Subject: Replace the error-prone "n/range" calls with "indices". --- stdlib/source/lux/macro/poly/json.lux | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'stdlib/source/lux/macro/poly/json.lux') 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//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)]) -- cgit v1.2.3