string[] mp = [ "s..", "...", "#g#"]; assert(mp.at2D([0, 0]) == 's'); assert(mp.at2D([2, 1]) == 'g');
See Implementation