## Description Add a command which uses a predicate and returns the **first index where the predicate returns true**. Performs a _linear_ search and _stops_ on the first `true` of the predicate. Returns the index matched. ## Design notes - The name `idx-of` could also be `find-idx` - `find` should be reserved for something which returns a `TableRow` - `find-idx` would actually align with a future `find` impl - What to return on failure? - This might be blocked on #156 if something like `Option` is wanted - Alternatively, a numeric like `-1` could be returned - Implement on all the iterables (`Table`, `String`) --- > Alternatively, a numeric like `-1` could be returned A use case is to find an index for _insertion_ or _skipping_. In that case, a sensible return value would be beneficial and merits a considered design.
Activity