aboutsummaryrefslogtreecommitdiff
path: root/stdlib/source/library/lux/world/shell.lux
diff options
context:
space:
mode:
authorEduardo Julian2021-08-23 02:30:53 -0400
committerEduardo Julian2021-08-23 02:30:53 -0400
commitec1f31b5a1492d5e0ab260397291d4449483bbd9 (patch)
treec730b4ca89af366779b0ad0f46fae705b5c2bcbc /stdlib/source/library/lux/world/shell.lux
parent1ea83ecadccc5adee1bdb35bd11527c3982c015e (diff)
The Python compiler can now be compiled by the new JVM compiler.
Diffstat (limited to '')
-rw-r--r--stdlib/source/library/lux/world/shell.lux32
1 files changed, 16 insertions, 16 deletions
diff --git a/stdlib/source/library/lux/world/shell.lux b/stdlib/source/library/lux/world/shell.lux
index d59b72786..a86f33a67 100644
--- a/stdlib/source/library/lux/world/shell.lux
+++ b/stdlib/source/library/lux/world/shell.lux
@@ -25,7 +25,7 @@
["." utf8]]]
[collection
["." array (#+ Array)]
- ["." list ("#\." fold functor)]
+ ["." list ("#\." mix functor)]
["." dictionary]]]
[math
[number (#+ hex)
@@ -181,12 +181,12 @@
(def: (jvm::arguments_array arguments)
(-> (List Argument) (Array java/lang/String))
(product.right
- (list\fold (function (_ argument [idx output])
- [(++ idx) (jvm.write! idx
- (:as java/lang/String argument)
- output)])
- [0 (jvm.array java/lang/String (list.size arguments))]
- arguments)))
+ (list\mix (function (_ argument [idx output])
+ [(++ idx) (jvm.write! idx
+ (:as java/lang/String argument)
+ output)])
+ [0 (jvm.array java/lang/String (list.size arguments))]
+ arguments)))
(import: (java/util/Map k v)
["#::."
@@ -196,14 +196,14 @@
(-> Environment
(java/util/Map java/lang/String java/lang/String)
(java/util/Map java/lang/String java/lang/String))
- (list\fold (function (_ [key value] target')
- (exec
- (java/util/Map::put (:as java/lang/String key)
- (:as java/lang/String value)
- target')
- target'))
- target
- (dictionary.entries input)))
+ (list\mix (function (_ [key value] target')
+ (exec
+ (java/util/Map::put (:as java/lang/String key)
+ (:as java/lang/String value)
+ target')
+ target'))
+ target
+ (dictionary.entries input)))
(import: java/io/Reader
["#::."
@@ -263,7 +263,7 @@
[error jvm_error]
))
(def: (write message)
- (java/io/OutputStream::write (\ utf8.codec encode message) jvm_output))
+ (java/io/OutputStream::write (\ utf8.codec encoded message) jvm_output))
(~~ (template [<name> <method>]
[(def: (<name> _)
(<method> process))]