Ken Kin

4,503
reputation
3
38
76

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 */ }