diesieben07
08/12/2017, 2:53 PMuser
08/12/2017, 2:59 PMtschuchort
08/12/2017, 5:30 PMuser
08/12/2017, 7:44 PMfalse
tschuchort
08/12/2017, 7:44 PMtschuchort
08/12/2017, 7:45 PMadolgiy
08/12/2017, 7:47 PMRuckus
08/12/2017, 8:14 PMfitzoh
08/12/2017, 8:17 PMfitzoh
08/12/2017, 8:17 PMRuckus
08/12/2017, 8:38 PMRuckus
08/12/2017, 8:42 PMval keys = setOf("a", "b", "c")
...
val halfMap = keys.associateHalf { it to 0 }
halfMap["b"] = 5 // works
halfMap["d"] = 7 // throws exception
Ruckus
08/12/2017, 8:46 PMnapperley
08/13/2017, 6:53 AMkarelpeeters
08/13/2017, 7:07 AMkarelpeeters
08/13/2017, 7:16 AMSyncronizedQueue<Event>
for the events, and just call poll()
on it in the while loop, it will automatically wait until there are events and call put(event)
when there's a new even, it will automatically resume the main loop.supaham
08/13/2017, 5:54 PMnapperley
08/14/2017, 12:35 AMnapperley
08/14/2017, 12:38 AMDalinar
08/14/2017, 3:45 AMuser
08/14/2017, 4:39 AMgson.fromJson<Map<String, Any>>(json, Map::class.java)
user
08/14/2017, 4:43 AMjimn
08/14/2017, 6:13 AMjoshuaavalon
08/14/2017, 6:38 AMjoshuaavalon
08/14/2017, 6:45 AMarekolek
08/14/2017, 8:03 AMboolean foo = false || true;
foo |= false;
to this Kotlin code:
var foo = false || true
foo = foo or false
arekolek
08/14/2017, 8:03 AMor
worth introducing the inconsistency?arekolek
08/14/2017, 8:04 AM||
, and somebody can be surprised later on.karelpeeters
08/14/2017, 8:04 AM|
operator doesn't exist in Kotlin, so |=
doesn't exist either.