Get indexes of character in array

Andrej Mitrovic andrej.mitrovich at gmail.com
Tue Mar 27 23:35:43 PDT 2012


I'd like to get a list of indexes into an array that matches a character. E.g.:

"a foo a bar a".indexes("a") == [0, 6, 12]

Anything like that in Phobos?


More information about the Digitalmars-d-learn mailing list