diff options
Diffstat (limited to '')
-rw-r--r-- | stdlib/source/library/lux/world/program.lux | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/stdlib/source/library/lux/world/program.lux b/stdlib/source/library/lux/world/program.lux index 950f19206..5fdc9cc21 100644 --- a/stdlib/source/library/lux/world/program.lux +++ b/stdlib/source/library/lux/world/program.lux @@ -306,10 +306,11 @@ (Program IO) (def: (available_variables _) - (with_expansions [<jvm> (io.io (|> (java/lang/System::getenv) - java/util/Map::keySet - java/util/Set::iterator - ..jvm##consume))] + (with_expansions [<jvm> (|> (java/lang/System::getenv) + java/util/Map::keySet + java/util/Set::iterator + ..jvm##consume + io.io)] (for [@.old <jvm> @.jvm <jvm> @.js (io.io (if ffi.on_node_js? @@ -325,9 +326,7 @@ @.python (# io.monad each (array.list {.#None}) (os/environ::keys [])) ... Lua offers no way to get all the environment variables available. @.lua (io.io (list)) - @.ruby (|> (RubyEnv::keys []) - (array.list {.#None}) - io.io) + @.ruby (io.io (array.list {.#None} (RubyEnv::keys []))) ... @.php (do io.monad ... [environment (..getenv/0 [])] ... (in (|> environment |