Ken Kin

4,351
reputation
3
37
73

Some code snippets for my convenience to copy and paste ..

if(i <0?false:n> i) { /* i am safe here */ }

if(0> i||n-i <1) { /* i am out of range */ }