Diff
Not logged in

Differences From Artifact [545a22e98c8c86c7]:

To Artifact [17dbdc662950a670]:


145 145 // Adjust coordinate to the spec. bottom-left is (1,1). 146 146 --y, --x; 147 147 if(y<0||H<=y||x<0||W<=x) 148 148 return '#'; 149 149 return data[H-1-y][x]; 150 150 } 151 151 152 - char opIndex(Pos p) 152 + char opIndex(in Pos p) 153 153 { 154 154 return this[p.y, p.x]; 155 155 } 156 156 } 157 157 158 158 void opIndexAssign(char c, int y, int x) 159 159 { ................................................................................ 160 160 // Adjust coordinate to the spec. bottom-left is (1,1). 161 161 --y, --x; 162 162 if(y<0||H<=y||x<0||W<=x) 163 163 return; 164 164 data[H-1-y][x] = c; 165 165 } 166 166 167 - void opIndexAssign(char c, Pos p) 167 + void opIndexAssign(char c, in Pos p) 168 168 { 169 169 this[p.y, p.x] = c; 170 170 } 171 171 172 172 Pos[] lambdas() const { 173 173 Pos[] ans; 174 174 for(int y=1; y<=H; ++y)