![]() | Fun 0.41.5 The programming language that makes You have fun |
Utility functions for operating on Value arrays. More...
#include "value.h"

Go to the source code of this file.
Functions | |
| int | array_contains (const Value *v, const Value *needle) |
| Check if an array Value contains a given element. | |
| 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. | |
Utility functions for operating on Value arrays.
Definition in file array_utils.c.
| void array_clear | ( | Value * | v | ) |
Remove all elements from an array Value, freeing their contents.
Uses array_pop() repeatedly to clear the array.
Definition at line 68 of file array_utils.c.

Check if an array Value contains a given element.
Performs linear search using value_equals() on copied elements.
Definition at line 26 of file array_utils.c.
