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