dumptruckman
02/12/2019, 5:33 PMkarelpeeters
02/12/2019, 5:33 PMfun ((String) -> Int).foo() = println(this("hey"))
dumptruckman
02/12/2019, 5:33 PMkarelpeeters
02/12/2019, 5:34 PM::myFun.foo()
dumptruckman
02/12/2019, 5:34 PMdumptruckman
02/12/2019, 5:34 PMfun ::populateContext.test()
not workingkarelpeeters
02/12/2019, 5:35 PMfun 3.foo()
to work.marstran
02/12/2019, 5:35 PM(String) -> Int
is not a lambda function. It's the type of all functions that take a String
and return an Int
. It doesn't matter if it's defined with name or anonymous.dumptruckman
02/12/2019, 5:36 PMmarstran
02/12/2019, 5:37 PMfun doSomething(s: String) {
fun innerFunction() {
println(s)
}
innerFunction()
}
dumptruckman
02/12/2019, 5:37 PMfun foo(bar: String) {
fun help() {
println(bar)
}
help()
}
I could just do open fun foo(bar: String) {
help()
}
dumptruckman
02/12/2019, 5:38 PMkarelpeeters
02/12/2019, 5:38 PMhelp
come from? Shouldn't it just be a parameter?dumptruckman
02/12/2019, 5:38 PMdumptruckman
02/12/2019, 5:39 PMjw
03/05/2019, 3:35 PMDerek Berner
03/05/2019, 6:34 PMlist.groupBy{it.id}.mapValues{it.value.single()}
is pretty compactnatpryce
03/05/2019, 6:35 PMassociateBy
is what you’re looking forMarc Knaup
03/05/2019, 6:45 PMInlineClass::class
as an annotation property value gives me the wrapped type in annotation processing instead of the boxed type 😢
Is that intentional? 😮user
03/06/2019, 1:00 PMandries.fc
03/06/2019, 1:27 PMstreetsofboston
03/06/2019, 2:52 PMEither
from the Arrow libraryursus
03/06/2019, 2:52 PMursus
03/06/2019, 2:52 PMursus
03/06/2019, 2:53 PMursus
03/06/2019, 2:55 PMstreetsofboston
03/06/2019, 2:55 PMursus
03/06/2019, 2:55 PMursus
03/06/2019, 2:55 PMursus
03/06/2019, 2:56 PM