wasmhost: fix build on current MoonBit (Str(_) partial application) #2
+1
-1
@@ -32,7 +32,7 @@ pub fn Val::bytes(b : Bytes) -> Val {
|
|||||||
|
|
||||||
///| A `list<string>`.
|
///| A `list<string>`.
|
||||||
pub fn Val::strings(a : Array[String]) -> Val {
|
pub fn Val::strings(a : Array[String]) -> Val {
|
||||||
List(a.map(Str(_)))
|
List(a.map(s => Str(s)))
|
||||||
}
|
}
|
||||||
|
|
||||||
///| Record field `name` (records are looked up by name, not position).
|
///| Record field `name` (records are looked up by name, not position).
|
||||||
|
|||||||
Reference in new issue
Block a user