Arrays
Index¶
arrays::to_lines¶
Print each element of an array on its own line. Output: stdout — one element per line
Arguments¶
- ... (array): elements to print
arrays::diff¶
Set difference: elements in first sorted array missing from second sorted array. Both arrays must already be sorted in ascending order; results are undefined for unsorted input. Empty arrays are handled correctly: an empty first array yields no output; an empty second array yields all elements of the first.
Arguments¶
- $1 (name): of first sorted array (variable name passed as a name-ref)
- $2 (name): of second sorted array (variable name passed as a name-ref)
Output on stdout¶
- Elements present in first array but not in second, one per line