From 381ec5920d9ebeb335963778dec182268819e718 Mon Sep 17 00:00:00 2001 From: Eduardo Julian Date: Wed, 30 Mar 2022 14:05:57 -0400 Subject: Now demanding mandatory loop names, instead of using default "again" name. --- lux-python/source/program.lux | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'lux-python') diff --git a/lux-python/source/program.lux b/lux-python/source/program.lux index d6dc27186..6f145bbbd 100644 --- a/lux-python/source/program.lux +++ b/lux-python/source/program.lux @@ -149,9 +149,9 @@ (def: (read_tuple read host_object) (-> Translator Translator) (let [size (|> host_object org/python/core/PyObject::__len__ ffi.of_int .nat)] - (loop [idx 0 - output (as (Array Any) - (array.empty size))] + (loop (again [idx 0 + output (as (Array Any) + (array.empty size))]) (if (n.< size idx) (case (org/python/core/PyObject::__getitem__ (ffi.as_int (.int idx)) host_object) {try.#Success value} @@ -267,8 +267,8 @@ (try.trusted (do [! try.monad] [inputs (monad.each ! ..read (array.list {.#None} inputs))] - (in (loop [it it - inputs inputs] + (in (loop (again [it it + inputs inputs]) (`` (`` (case inputs (pattern (list)) (as org/python/core/PyObject self) -- cgit v1.2.3