chan
03/31/2019, 8:32 AMe: [kapt] An exception occurred: java.lang.ClassCastException: com.sun.tools.javac.code.Type$ClassType cannot be cast to java.lang.Class
at com.sun.proxy.$Proxy52.parent(Unknown Source)
Seri
04/10/2019, 7:09 PMvar
jlleitschuh
04/16/2019, 9:09 PMMartin Devillers
04/17/2019, 1:57 PMrepeat
top-level function which doesn’t take the argument for the number of times that it should execute the block, essentially sugar for an infinite loop?
inline fun repeat(action: (Int) -> Unit) {
contract { callsInPlace(action) }
var index = 0
while (true) {
action(index)
index++
}
}
I’m finding that this “repeat indefinitely” pattern is starting to occur more frequently with coroutines, and it could be nice to have a nicer syntax for it.jw
04/17/2019, 2:01 PMkarelpeeters
05/25/2019, 9:41 AMRandom(5)
works fine, but I want a seed generated by the platform.karelpeeters
05/25/2019, 9:42 AMRandom(Random.Default.nextLong())
?uli
07/13/2019, 9:39 AMU
can be String?
for example.LeoColman
08/10/2019, 10:52 PMasad.awadia
08/11/2019, 1:36 AMkarelpeeters
08/11/2019, 6:21 AMasad.awadia
08/12/2019, 8:56 PMjw
08/13/2019, 8:28 PMIntRange
on one or both sides. Am I missing something?cbruegg
08/13/2019, 8:45 PMjw
08/13/2019, 8:48 PMdr.dreigh
09/06/2019, 6:44 PMdr.dreigh
09/06/2019, 6:44 PMjava.lang.UnsupportedOperationException
LeoColman
10/30/2019, 7:31 PMasad.awadia
12/05/2019, 8:43 PMasad.awadia
12/05/2019, 8:47 PMjimn
12/07/2019, 7:56 PMfoo[3..1]
very awkward to cast to the abovejimn
12/07/2019, 8:01 PMjimn
12/07/2019, 8:04 PMjimn
12/10/2019, 6:54 PMjimn
12/10/2019, 6:56 PMpoohbar
12/10/2019, 7:26 PMIterable<Pair<K, V>>.toSortedMap()
jimn
12/19/2019, 12:37 AMMarc Knaup
12/24/2019, 12:15 PM.map()
, .filter()
etc. for empty collections in order to spare the useless allocation 🤔Zac Sweers
01/10/2020, 7:59 AMZac Sweers
01/10/2020, 8:00 AMgetType()
is just
inline fun <reified T> getType(): KType {
return typeOf<T>()
}