findFirst2D

Unstable

int[2]
findFirst2D
(
T
U
)
(
in T mp
,
in U c
)

Examples

1 string[] mp = [
2     "s..",
3     "...",
4     "#g#"];
5 assert(mp.findFirst2D('s') == [0, 0]);
6 assert(mp.findFirst2D('g') == [2, 1]);

Meta