36 fprintf(stderr,
"Runtime type error: FIND expects (string, string)\n");
push_value(vm, make_int(idx))
int bi_find(const Value *hay, const Value *needle)
Find the first occurrence of a needle inside a haystack string.
Tagged union representing a Fun value.
Value make_int(int64_t v)
Construct a Value representing a 64-bit integer.
static Value pop_value(VM *vm)
Pop a Value from the VM operand stack.