35 for (
int i = 0; i <
n; ++i) {
47 for (
int i = 0; i <
n; ++i)
69 int n = na < nb ? na : nb;
73 for (
int i = 0; i <
n; ++i) {
86 for (
int i = 0; i <
n; ++i)
Value bi_zip(const Value *a, const Value *b)
Zip two arrays into an array of pairs up to the shorter length.
Value bi_enumerate(const Value *arr)
Build an array of [index, value] pairs from an input array.
Tagged union representing a Fun value.
int array_length(const Value *v)
Get the element count of an array Value.
void free_value(Value v)
Free dynamic storage owned by a Value.
int array_get_copy(const Value *v, int index, Value *out)
Copy an array element into out.
Value make_int(int64_t v)
Construct a Value representing a 64-bit integer.
Value make_array_from_values(const Value *vals, int count)
Create an array Value by copying items from an input span.
Defines the Value type and associated functions for the Fun VM.