Codebox Operators list.filter

list.filter

Filter items in list b out of list a. (similar to zl.filter)

list.filter(a, b): [out1, out2]

Arguments:

Arguments

NameTypeDefaultDescription
alist

A list in the left inlet will be filtered to remove any items contained in the right list.

blist

A list of items that should be filtered out of the left input list.

Returns

NameTypeDescription
out1list

A new list composed of any items in the left input list not contained in the right input list.

out2list

Outputs a list of indices (zero-based) of the original positions for all non-filtered (remaining) list items.