LeoColman
01/07/2019, 4:00 PMgaspard
01/07/2019, 4:19 PMliminal
01/07/2019, 7:12 PMhashCode()
of my class from an interface that this class implements?ghedeon
01/08/2019, 12:22 AMval foo by lazy {
val bar by lazy { }.value
}
??karelpeeters
01/08/2019, 12:23 AMAlexandru Hadăr
04/15/2021, 3:04 PMstdlib
dependency anymore, it's included by default.
Does it detect automatically what Java version I'm targeting ? So if I target Java 1.8
, will it download kotlin-stdlib-jdk8
? Same for Java 1.7
?jlleitschuh
04/15/2021, 3:08 PMuser
04/15/2021, 3:25 PMuser
04/17/2021, 5:30 PMuser
04/18/2021, 12:51 PMTomasz Krakowiak
04/19/2021, 10:37 AMpublic typealias SetValue<Value> = Value
"Type alias expands to Value, which is not a class, an interface, or an object"Stanislav Karakovsky
04/19/2021, 10:42 AMkotlin-preloader.jar
as mvn attifact? It comes with a compiler in the github release, but I couldn't find it on mavencentral.user
04/19/2021, 2:05 PMuser
04/19/2021, 6:04 PMVivek Modi
04/19/2021, 9:09 PMSimon Lin
04/20/2021, 2:37 AMuser
04/20/2021, 11:03 AMuser
04/20/2021, 12:20 PMuser
04/20/2021, 5:07 PMdave08
04/21/2021, 1:27 PMuser
04/21/2021, 4:02 PMspand
04/22/2021, 5:59 AMT?
. ie. here I invented the !!
type operator for it. Should be clear from the example here why it makes sense.
interface LoadingCache<K : Any, V> {
fun get(key: K): V // <-- If it can return null then it must be specified by type V
// If load returns null then entries are missing hence it doesnt make sense to have here : Map<K,V?>
fun <MV : V!!> getAll(keys: Iterable<K>): Map<K, MV> {
return keys.mapNotNull { k -> get(k)?.let { k to it } }.toMap()
}
}
user
04/22/2021, 3:37 PMuser
04/22/2021, 4:03 PMpascalchidi
04/22/2021, 10:55 PMpascalchidi
04/22/2021, 10:56 PMRayeW47
04/22/2021, 11:58 PMuser
04/23/2021, 12:47 PMTomasz Krakowiak
04/24/2021, 9:59 AMprivate
modifier meaning is dependant on context...user
04/24/2021, 3:04 PM