aboutsummaryrefslogtreecommitdiff
path: root/lux-python/source
diff options
context:
space:
mode:
Diffstat (limited to 'lux-python/source')
-rw-r--r--lux-python/source/program.lux10
1 files changed, 5 insertions, 5 deletions
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)