Mahendran
10/03/2019, 11:31 AMgazpowell
10/03/2019, 12:37 PMMark Buikema
10/03/2019, 12:56 PMfilter()
, except it returns a list of the filtered items and a list of the unfiltered items? I need both listsDias
10/03/2019, 1:38 PMDias
10/03/2019, 1:39 PMLuis Munoz
10/03/2019, 3:25 PMtemp_man
10/03/2019, 6:44 PMCyril Scetbon
10/04/2019, 1:30 PMsnackycracky
10/04/2019, 2:10 PMEugen Martynov
10/04/2019, 4:19 PMEugen Martynov
10/04/2019, 4:19 PMgroostav
10/04/2019, 9:30 PMvalue: string
and a KPropoperty1<*, T>
, and I'm certain that the value
is a `toString()`'d version of T
and that T
is a common value type (eg String
, Double
, or enum class
). Is there a handy way for me to convert from my value
to an instance of the `KProperty`'s return type? I can write the switch but I sorta feel like somebody should've handled this for me.
I've got both guava and apache commons on my classpathtipsy
10/04/2019, 11:08 PMSlackbot
10/05/2019, 12:50 AMdewildte
10/05/2019, 2:14 PMmarcinmoskala
10/05/2019, 4:19 PMHexa
10/06/2019, 8:14 AMyawkat
10/06/2019, 10:08 AMLocalSubType
is missing the capture parameterdoodla
10/07/2019, 5:52 AMspand
10/07/2019, 6:29 AMoperator val invoke
property ? The error message seems to suggest its possible but I cant find a way
Modifier 'operator' is not applicable to 'member property without backing field or delegate'
class Foo {
companion object {
operator val invoke = {}
}
}
Sergio C.
10/07/2019, 10:59 AMjmfayard
10/07/2019, 11:03 AM$ sed -e 's/find/replace/' -e 's/find/replace/' filename
Colton Idle
10/07/2019, 11:11 AMpavel
10/07/2019, 5:47 PMfun pairTest(foo: Boolean, bar: Boolean) =
when (foo to bar) {
(true to true) -> 1
(true to false) -> 2
(false to true) -> 3
(false to false) -> 4
}
IntelliJ is saying that I need an else branch here. How come? And is there a better way to do this?kevin.cianfarini
10/07/2019, 6:17 PMtoken
here. internal enum class BencoderTokens(private val token: Byte) {
INTEGER('i'.toByte()),
STRING(':'.toByte()),
LIST('l'.toByte()),
DICT('d'.toByte()),
END('e'.toByte())
}
Sylvain Patenaude
10/07/2019, 7:46 PMbrain
10/07/2019, 8:45 PMPaul Woitaschek
10/08/2019, 7:08 AMOlekss
10/08/2019, 2:08 PMRobert
10/08/2019, 4:27 PMMap
? I tried extending HashMap
but it is final. When I extend Map
I have to implement all types of body functions like containsKey
, containsValue
, get
, isEmpty
and properties entries
, keys
, size
and values