This is just code obfuscation - this is meant to be an example which outlines the logic behind the intent... compressing it into fewer lines, especially in this way, makes harder to read and understand.