29 for (
int i = 0; i <
n; ++i) {
50 for (
int i = 0; i <
n; ++i) {
71 for (
int i = 0; i <
n; ++i) {
int array_index_of(const Value *v, const Value *needle)
Find the index of the first occurrence of an element in an array.
void array_clear(Value *v)
Remove all elements from an array Value, freeing their contents.
int array_contains(const Value *v, const Value *needle)
Check if an array Value contains a given element.
Tagged union representing a Fun value.
int array_pop(Value *v, Value *out)
Remove the last element from an array.
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.
int value_equals(const Value *a, const Value *b)
Compare two Values for equality.
Defines the Value type and associated functions for the Fun VM.