in reply to smartmatch and index
Index doesn't even make sense for most smart-match inputs, so it doesn't make sense for smart-matching in general.
This is probably what you want:
my @indexes = map { EXPR ~~ $a[$_] } 0..$#a;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: smartmatch and index
by Anonymous Monk on Oct 13, 2010 at 14:39 UTC | |
by ikegami (Patriarch) on Oct 13, 2010 at 15:58 UTC |