aboutsummaryrefslogtreecommitdiff
path: root/lux-jvm/source/luxc/lang/host
diff options
context:
space:
mode:
Diffstat (limited to 'lux-jvm/source/luxc/lang/host')
-rw-r--r--lux-jvm/source/luxc/lang/host/jvm.lux34
-rw-r--r--lux-jvm/source/luxc/lang/host/jvm/def.lux16
-rw-r--r--lux-jvm/source/luxc/lang/host/jvm/inst.lux2
3 files changed, 26 insertions, 26 deletions
diff --git a/lux-jvm/source/luxc/lang/host/jvm.lux b/lux-jvm/source/luxc/lang/host/jvm.lux
index e24922771..305d04f8c 100644
--- a/lux-jvm/source/luxc/lang/host/jvm.lux
+++ b/lux-jvm/source/luxc/lang/host/jvm.lux
@@ -94,32 +94,32 @@
options (<code>.tuple (<>.many <code>.local_identifier))])
(let [g!type (code.local_identifier type)
g!none (code.local_identifier none)
- g!tags+ (list/map code.local_tag options)
+ g!tags+ (list/each code.local_tag options)
g!_left (code.local_identifier "_left")
g!_right (code.local_identifier "_right")
- g!options+ (list/map (function (_ option)
- (` (def: .public (~ (code.local_identifier option))
- (~ g!type)
- (|> (~ g!none)
- (with@ (~ (code.local_tag option)) #1)))))
- options)]
+ g!options+ (list/each (function (_ option)
+ (` (def: .public (~ (code.local_identifier option))
+ (~ g!type)
+ (|> (~ g!none)
+ (with@ (~ (code.local_tag option)) #1)))))
+ options)]
(in (list& (` (type: .public (~ g!type)
- (~ (code.record (list/map (function (_ tag)
- [tag (` .Bit)])
- g!tags+)))))
+ (~ (code.record (list/each (function (_ tag)
+ [tag (` .Bit)])
+ g!tags+)))))
(` (def: .public (~ g!none)
(~ g!type)
- (~ (code.record (list/map (function (_ tag)
- [tag (` #0)])
- g!tags+)))))
+ (~ (code.record (list/each (function (_ tag)
+ [tag (` #0)])
+ g!tags+)))))
(` (def: .public ((~ (code.local_identifier ++)) (~ g!_left) (~ g!_right))
(-> (~ g!type) (~ g!type) (~ g!type))
- (~ (code.record (list/map (function (_ tag)
- [tag (` (or (value@ (~ tag) (~ g!_left))
- (value@ (~ tag) (~ g!_right))))])
- g!tags+)))))
+ (~ (code.record (list/each (function (_ tag)
+ [tag (` (or (value@ (~ tag) (~ g!_left))
+ (value@ (~ tag) (~ g!_right))))])
+ g!tags+)))))
g!options+))))
diff --git a/lux-jvm/source/luxc/lang/host/jvm/def.lux b/lux-jvm/source/luxc/lang/host/jvm/def.lux
index 130e0bb56..b772435cd 100644
--- a/lux-jvm/source/luxc/lang/host/jvm/def.lux
+++ b/lux-jvm/source/luxc/lang/host/jvm/def.lux
@@ -82,9 +82,9 @@
(def: (string_array values)
(-> (List Text) (Array Text))
(let [output (ffi.array java/lang/String (list.size values))]
- (exec (list@map (function (_ [idx value])
- (ffi.write! idx value output))
- (list.enumeration values))
+ (exec (list@each (function (_ [idx value])
+ (ffi.write! idx value output))
+ (list.enumeration values))
output)))
(def: (version_flag version)
@@ -137,7 +137,7 @@
(format name
(param_signature super)
(|> interfaces
- (list@map param_signature)
+ (list@each param_signature)
(text.interposed ""))))
(def: (constraints_signature constraints super interfaces)
@@ -147,13 +147,13 @@
""
(format "<"
(|> constraints
- (list@map formal_param)
+ (list@each formal_param)
(text.interposed ""))
">"))]
(format formal_params
(..signature super)
(|> interfaces
- (list@map ..signature)
+ (list@each ..signature)
(text.interposed "")))))
(def: class_computes
@@ -181,7 +181,7 @@
(constraints_signature constraints super interfaces)
(..class_name super)
(|> interfaces
- (list@map ..class_name)
+ (list@each ..class_name)
string_array)))
definitions)
_ (org/objectweb/asm/ClassWriter::visitEnd writer)]
@@ -210,7 +210,7 @@
(constraints_signature constraints $Object interfaces)
(..class_name $Object)
(|> interfaces
- (list@map ..class_name)
+ (list@each ..class_name)
string_array)))
definitions)
_ (org/objectweb/asm/ClassWriter::visitEnd writer)]
diff --git a/lux-jvm/source/luxc/lang/host/jvm/inst.lux b/lux-jvm/source/luxc/lang/host/jvm/inst.lux
index e0402d924..2dac20c54 100644
--- a/lux-jvm/source/luxc/lang/host/jvm/inst.lux
+++ b/lux-jvm/source/luxc/lang/host/jvm/inst.lux
@@ -46,7 +46,7 @@
(syntax: (declare [codes (p.many s.local_identifier)])
(|> codes
- (list@map (function (_ code) (` ((~' #static) (~ (code.local_identifier code)) (~' int)))))
+ (list@each (function (_ code) (` ((~' #static) (~ (code.local_identifier code)) (~' int)))))
in))
(`` (import: org/objectweb/asm/Opcodes