acidbase.match_all

acidbase.match_all(x: Sequence, table: Sequence) list[int]

Return indices of all matches of x in table.

Like R’s match() but returns all positions, not just the first.

Parameters:
  • x (sequence) – Values to look up.

  • table (sequence) – Reference table.

Returns:

0-based indices into table.

Return type:

list[int]

Raises:

KeyError – If any element in x is not found in table.