LPOSReturn the index of matching elements in a list.
| Syntax | LPOS key element [RANK rank] [COUNT num-matches] [MAXLEN len] |
| Group | list |
| Arity | -3 |
| Since | 1.0.0 |
| Flags | readonly |
| Complexity | O(N) always — the whole list is copied before RANK / COUNT / MAXLEN are applied, so MAXLEN bounds the comparisons but not the copy |
| Redis compatibility | full |