aboutsummaryrefslogtreecommitdiff
path: root/stdlib/source/library/lux/world/program.lux
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--stdlib/source/library/lux/world/program.lux6
1 files changed, 3 insertions, 3 deletions
diff --git a/stdlib/source/library/lux/world/program.lux b/stdlib/source/library/lux/world/program.lux
index 10a2cc7b1..0561a7c66 100644
--- a/stdlib/source/library/lux/world/program.lux
+++ b/stdlib/source/library/lux/world/program.lux
@@ -300,7 +300,7 @@
{.#Some process/env}
(|> (Object::entries [process/env])
(array.list {.#None})
- (list#each (|>> (array.read! 0) maybe.trusted)))
+ (list#each (|>> (array.item 0) maybe.trusted)))
{.#None}
(list))
@@ -344,8 +344,8 @@
@.js (io.io (if ffi.on_node_js?
(case (do maybe.monad
[process/env (ffi.global Object [process env])]
- (array.read! (as Nat name)
- (as (Array Text) process/env)))
+ (array.item (as Nat name)
+ (as (Array Text) process/env)))
{.#Some value}
{try.#Success value}