Ken Kin

31
reputation
5

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