Collections
Manipulate arrays and maps efficiently in Vadalog programs.Array Operations
collections:size()
Get the number of elements in an array:
collections:is_empty()
Check if an array is empty:
collections:contains()
Check if an array contains a specific value:
collections:contains_all()
Check if an array contains all elements from another array:
collections:add()
Add an element to an array:
collections:remove()
Remove all occurrences of a value from an array:
collections:get()
Get an element at a specific index (1-based):
Set Operations on Arrays
collections:union()
Combine two arrays, removing duplicates:
collections:difference()
Get elements in first array but not in second:
collections:intersection()
Get common elements between two arrays:
Array Transformations
collections:sort()
Sort array elements in ascending or descending order:
"asc" (default) or "desc".

