Re Iridium satellites: unfortunately, they are being replaced by a new generation of satellites which do not produce flares and thus likely won't be seen by the naked eye anymore. Source: https://heavens-above.com/IridiumDemise.aspx
84 karma · joined November 11, 2013
https://github.com/udalov
[ my public key: https://keybase.io/udalov; my proof: https://keybase.io/udalov/sigs/pjMGYJAla2gkaqqIo0o7WvKfoiMWEH0GhI1n31Wicr4 ]
More info in the official reference: https://kotlinlang.org/docs/reference/control-flow.html#when...
You can basically consider 'when'-expressions to be syntax sugar over Java's if-else or ternary operator (?:) chains.
val arr = Array(height) { x -> Array(width) { y -> Tile(x, y, Terrain.GRASS) } }