Jukka Siivonen
01/18/2019, 1:12 PMHullaballoonatic
01/18/2019, 9:40 PMkarelpeeters
01/18/2019, 10:38 PMHullaballoonatic
01/18/2019, 10:59 PMconst
? they've had it reserved and unused for how long now?Hullaballoonatic
01/19/2019, 11:42 PMas
and is
? As in, I have made a custom class, and is somewhere else a cast some class to it with as
, it would follow code i wrote somewhere else to do so. Does that make sense?ursus
01/20/2019, 4:17 AMfor (lookupTask in lookupTasks) {
val serverUrl = lookupTask.execute(domain, username, password)
if (serverUrl != null) {
return serverUrl
}
}
return null
popescustefanradu
01/20/2019, 1:05 PMbjonnh
01/21/2019, 3:51 AMHullaballoonatic
01/21/2019, 5:34 AMval data = aDataClassOrSomething(foo = ArrayList<Stuff>())
val bar = data.foo
is bar
passed by reference or just value? If I alter bar
does it alter data.foo
?Azhar
01/22/2019, 11:02 AMCarlosBlanco
01/22/2019, 3:03 PMfebs
01/22/2019, 9:07 PMRuckus
01/22/2019, 9:10 PMval people = mapOf("a" to Person("Fred"), "b" to Person("George"))
val fred = people["a"]
ivano
01/24/2019, 10:06 AMSmorg
01/24/2019, 1:31 PMclass V {
fun doSomething() {
...
}
sealed class S {
object S1: S() {
// how can I possibly do below:
init {
doSomething()
}
}
}
}
I know for a regular class, I just need to declare it as inner and call the regular outer class methods from itfebs
01/25/2019, 12:36 PMpugnator
01/26/2019, 8:15 AMjurajsolarml
01/27/2019, 4:20 PMaarjav
01/28/2019, 12:09 AMFunction<T,R>?
to ((T) -> R)?
I used an extension property val Function<T,R>.lambda: ((T) -> R) get() = this::apply
and use it like func?.lambda
voddan
01/28/2019, 2:49 PMivano
01/29/2019, 10:58 AMJay
01/29/2019, 1:53 PMreturn <whatever>
from lambdas - I know I just need to remove the return
, but can anyone explain the error message to me? From the expected type it looks as if the return
from within the lambda is capable of terminating the enclosing function call - how is this possible? Would this pop the stack from the lambda, the partition
call, and the enclosing function - like a throw
?Kevin
01/30/2019, 2:00 AM~/Library/Messages
folder by default. I have 2 questions:
1. How can I request permission to access this folder in Kotlin?
2. Can I give IntelliJ and all child processes permission to access this folder?
I gave IntelliJ full disk access, but that doesn’t seem to give permissions to my app when I click the run
button. Right now I have to build the whole app and manually add that build to my security settings each time.Anton Lakotka [JB]
01/30/2019, 11:44 AMotakusenpai
01/30/2019, 1:03 PMserebit
01/30/2019, 3:47 PMkarelpeeters
02/01/2019, 11:15 AM.mapNotNull { it.foo }.filter { barFunction(it) }
Bernhard
02/04/2019, 12:50 PMBernhard
02/04/2019, 1:04 PMBernhard
02/04/2019, 1:37 PMBernhard
02/04/2019, 1:37 PM