@remove(t:tab, n:numeric) @remove(m:map, k:value)
@remove is an impure overloaded function. See also @insert.
@remove(t:tab, n:numeric)
removes the element at index n
in t
(t
is modified in place).
Note that building a new tab by removing elements satisfying some
property P
is easy with a comprehension:
[ $x | $x in t, P ]
which builds a new tab, leavingt
untouched.
@remove(m:map, k:value)
removes the entry k
in map (m
is modified in place). Does nothing if
the key k
is not present in map .
See also tab related functions: @car, @cdr, @clear, @concat, @cons, @copy, @count, @dim, @domain, @drop, @empty, @explode, @find, @flatten, @gnuplot, @insert, @iota, @is_list, @is_prefix, @is_subsequence, @is_suffix, @lace, @last, @listify, @map, @max_val, @median, @member, @normalize, @occurs, @permute, @push_back, @push_front, @range, @reduce, @remove, @remove_duplicate, @replace, @resize, @reverse, @rotate, @scan, @scramble, @size, @slice, @sort, @sputter, @stutter, @tab_history, @tab_history_date, @tab_history_rdate, @take
See also map related functions: @add_pair, @clear, @count, @domain, @find, @gshift_map, @insert, @is_defined, @is_function, @is_map, @listify, @make_duration_map, @make_label_bpm, @make_label_duration, @make_label_pitches, @make_label_pos, @make_score_map, @map, @map_compose, @map_concat, @map_history, @map_history_date, @map_history_rdate, @map_normalize, @map_reverse, @mapval, @max_key, @max_val, @member, @merge, @min_key, @min_val, @occurs, @range, @remove, @select_map, @shift_map