neighbors4

  1. auto neighbors4(int[2] p)
    neighbors4
    (
    int[2] p
    )
  2. auto neighbors4(int[2] p, in Dungeon dg)

Examples

1 import std.algorithm : equal;
2 assert(equal(
3     [3, 5].neighbors4,
4     [[4, 5], [3, 6], [2, 5], [3, 4]],
5     ));

Meta