list neighbors only inside
1 import std.algorithm : equal; 2 assert(equal( 3 [0, 0].neighbors4(Dungeon(3, 3)), 4 [[1, 0], [0, 1]], 5 ));
See Implementation
list neighbors only inside