elemIndices -package:unboxing-vector -package:pipes-bytestring package:pipes

Outputs the indices of all elements that match the given element