Shawn
12/27/2018, 6:22 PMrepositories = modules.associate { it to "<mailto:git@bitbucket.org|git@bitbucket.org>:my/${it}.git" }
xenoterracide
12/27/2018, 6:25 PMkarelpeeters
12/27/2018, 6:45 PMplotAPI
lazy:
val plotAPI by lazy { PlotAPI() }
Hamza
12/28/2018, 5:52 AMgildor
12/28/2018, 10:12 AMkarelpeeters
12/28/2018, 10:13 AMcontains
?Jakub Gwóźdź
12/28/2018, 10:23 AMJérôme Gully
12/28/2018, 11:18 AMINSTANCE
var is assigned to a tempInstance
to check if it is null ? and why in the synchronizrd block the INSTANCE
is assigned to instance
and the instance
is returned instead of INSTANCE
? I missunderstood something i guess.hhariri
nerses
12/28/2018, 3:50 PMgildor
12/28/2018, 3:51 PMBimawa
12/28/2018, 3:58 PMthomasnield
12/28/2018, 4:12 PMhttps://spectrum.ieee.org/image/MjcxNTUzNg.gif▾
karelpeeters
12/28/2018, 4:16 PMShawn
12/28/2018, 4:18 PMjoelpedraza
12/28/2018, 8:51 PMJoshK
12/29/2018, 4:07 AMK J
12/29/2018, 7:00 AMval items = mutableListOf<T>()
override fun <U : T> typedItems(): List<U> {
return items.mapNotNull { it as? U }
}
but this is not?
val oldStuff = mutableListOf<List<*>>()
val newStuff = oldStuff.mapNotNull { it as? ArrayList<*> }
Ramin
12/29/2018, 7:48 AMbenleggiero
12/29/2018, 5:25 PMitnoles
12/29/2018, 9:04 PMAndrew Gazelka
12/30/2018, 1:10 AMShawn
12/30/2018, 3:30 AMMaruru
12/30/2018, 7:15 AMWahib
12/30/2018, 10:48 AMfdlk
12/30/2018, 1:47 PMSebastian Sellmair [JB]
12/30/2018, 2:01 PMDaniel
12/30/2018, 2:06 PM{ }
optional when writing a anonymous class?
object : xyz(...) { }
Seems like a minor inconsistency since they are optional with 'normal' classesSaiedmomen
12/30/2018, 6:40 PMrunBlocking
doesn't workrobstoll
12/30/2018, 11:40 PMinterface I1{ fun foo(f: (Int) -> Int) }
interface I2{ fun foo(f: (String) -> String) }
class A: I1, I2{
override fun foo(f: (Int) -> Int){}
override fun foo(f: (String)-> String){} //same JVM signature
}