PositionIndex¶
Status: Stable
documented, exercised by the test suite and/or worked examples, with no known limitations recorded.
Description¶
PositionIndex[list]
Gives <|value -> {positions}|> mapping each distinct
element to the list of 1-based positions where it occurs. O(n).
Examples¶
All examples below are verified against the current Mathilda build.
Implementation notes¶
Attributes: Protected.
Implementation status¶
Stable — documented, exercised by the test suite and/or worked examples, with no known limitations recorded.
References¶
- Source:
src/assoc.c - Specification:
docs/spec/builtins/data-structures.md