3 Added Notice
source | link

To subtract one (-1), instead of doing this

(i - 1) * 2

do the following

~-i * 2

which will save you 2 bytes in cases where you otherwise have to use brackets (e.g. arithmetics).

To subtract one (-1), instead of doing this

(i - 1) * 2

do the following

~-i * 2

which will save you 2 bytes.

To subtract one (-1), instead of doing this

(i - 1) * 2

do the following

~-i * 2

which will save you 2 bytes in cases where you otherwise have to use brackets (e.g. arithmetics).

2 added 8 characters in body
source | link

To subtract one (-1), instead of doing this

(i -= 1) * 2

do the following

~-i * 2

which will save you one byte2 bytes.

To subtract one (-1), instead of doing this

i -= 1

do the following

~-i

which will save you one byte.

To subtract one (-1), instead of doing this

(i - 1) * 2

do the following

~-i * 2

which will save you 2 bytes.

1
source | link

To subtract one (-1), instead of doing this

i -= 1

do the following

~-i

which will save you one byte.