Files
hakorune/examples/jit_map_param_call.nyash

13 lines
179 B
Plaintext

// Param-map JIT HostCall PoC
box Utils {
getMapSize(m) {
return m.size()
}
}
m = new MapBox()
m.set("a", 1)
m.set("b", 2)
u = new Utils()
print(u.getMapSize(m))