kevy

LPOS

Return the index of matching elements in a list.

SyntaxLPOS key element [RANK rank] [COUNT num-matches] [MAXLEN len]
Grouplist
Arity-3
Since1.0.0
Flagsreadonly
ComplexityO(N) always — the whole list is copied before RANK / COUNT / MAXLEN are applied, so MAXLEN bounds the comparisons but not the copy
Redis compatibilityfull

← All commands