at2D

Unstable

ref
at2D
(
T
U
)
(
ref T mp
,
in U idx
)

Examples

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

Meta