````D
struct indexedPair
{
size_t x, y;
}
bool isMapPassable[100][100];
auto p = indexedPair(50, 50);
if(isMapPassable[p]) return true;
````
Probably not, but I'm curious.
Chris Katko via Digitalmars-d-learn Fri, 10 Jun 2022 01:10:50 -0700
````D
struct indexedPair
{
size_t x, y;
}
bool isMapPassable[100][100];
auto p = indexedPair(50, 50);
if(isMapPassable[p]) return true;
````
Probably not, but I'm curious.