i think being able to get the index (array 'position') based on the result of a positive smartmatch is very useful.
Indeed, and I showed you how to do it.
it would be nice if the smartmatch function could be a bit more "telling".
Smart match has nothing to do with arrays. It can't return indexes when most match rules don't even involve indexes.
In reply to Re^3: smartmatch and index
by ikegami
in thread smartmatch and index
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |