trevjones
09/06/2017, 10:19 PMddsoyka
09/06/2017, 10:19 PMjw
09/06/2017, 10:20 PMmap.flatMap { (key, values) -> values.map { key to it } }
jw
09/06/2017, 10:21 PMddsoyka
09/06/2017, 10:23 PMgermangb
09/06/2017, 11:04 PMval foo: Int = 0xFFFFFFFF
Why is kotlin telling me this is not an Int?jw
09/06/2017, 11:07 PMjw
09/06/2017, 11:08 PMjw
09/06/2017, 11:09 PMInt
with that "large" number)jw
09/06/2017, 11:09 PMtoLong()
germangb
09/06/2017, 11:11 PMtypealias Int = Long
😅 ... kiddinggermangb
09/06/2017, 11:11 PMtreelzebub
09/06/2017, 11:36 PM@Synchronized get()
preferred?
@get:Synchronized
val things: List<Thing>
get() = thingMap.values.toList()
jw
09/06/2017, 11:38 PMtreelzebub
09/06/2017, 11:39 PMjw
09/06/2017, 11:39 PM@Synchronized get
is preferred, in my opinion. Use @get
when you don't have a get
function to hang annotations off ofjelloranger
09/07/2017, 1:07 AMjelloranger
09/07/2017, 1:08 AMjelloranger
09/07/2017, 1:18 AMval (string1, string2, string3, string4, string5) = listOfStrings
and want to add a string6, but it looks like I'll have to break it up into 6 individual lines now, i.e. val string1 = listOfStrings[0]
etcjw
09/07/2017, 1:20 AMjw
09/07/2017, 1:20 AMjw
09/07/2017, 1:21 AMfun <T> List<T>.component6() = this[5]
to make it work?jelloranger
09/07/2017, 1:24 AMjelloranger
09/07/2017, 1:30 AMjw
09/07/2017, 1:31 AMhorse_badorties
09/07/2017, 9:04 AMlovis
09/07/2017, 9:07 AManstaendig
09/07/2017, 9:08 AManstaendig
09/07/2017, 9:08 AMbamdmux
09/07/2017, 9:09 AM