Files
hakorune/examples/jit_array_is_empty.hako

14 lines
193 B
Plaintext

// Param-array JIT HostCall PoC (isEmpty)
box Utils {
isEmpty(a) {
return a.isEmpty()
}
}
a = new ArrayBox()
u = new Utils()
print(u.isEmpty(a))
a.push(1)
print(u.isEmpty(a))