mg6maciej
05/20/2017, 10:26 PMlistOf<String>().contains(Any())
cmd+B into contains
to see the code. Hint: @kotlin.internal.OnlyInputTypes
.alexreidy
05/20/2017, 10:53 PMIEnumerable.ToList()
or Java's collectors, no? I guess it's not a big deal but it kind of discourages consistent chained collection processing like you see in C# (where it scales). I guess it's not idiomatic Kotlin - I'm just surprised given that this is even idiomatic Java nowdiesieben07
05/20/2017, 10:53 PMasSequence()
you can switch from eager evaluation to lazyalexreidy
05/20/2017, 11:00 PMbod
05/20/2017, 11:25 PMkapt
weirdness. I have a Kotlin class that extends another class, and if I look at the generated kapt stub, it doesn’t extend it (which causes problems later). Is this a known bug?bod
05/20/2017, 11:27 PMapply plugin: 'kotlin-kapt'
or not)pshubham
05/21/2017, 2:41 AMredrield
05/21/2017, 2:54 AM(0..10).map(Int::toDouble)
would probably workredrield
05/21/2017, 2:54 AMkz
05/21/2017, 3:30 AMList<Double>
kz
05/21/2017, 3:31 AMfun convert(ints: IntArray) = DoubleArray(ints.size) { index -> ints[index].toDouble() }
kz
05/21/2017, 3:32 AMfarleylai
05/21/2017, 7:42 AMuser
05/21/2017, 7:45 AMhttps://kotlinlang.slack.com/files/U5DQZTDAL/F5FDZ968H/screen_shot_2017-05-21_at_2.41.21_am.png▾
user
05/21/2017, 7:46 AMhttps://kotlinlang.slack.com/files/U5DQZTDAL/F5FDZ968H/screen_shot_2017-05-21_at_2.41.21_am.png▾
mg6maciej
05/21/2017, 9:35 AMShould this be allowed in :kotlin:?▾
mg6maciej
05/21/2017, 9:39 AMScreen Shot 2017-05-21 at 11.39.13.png▾
voddan
05/21/2017, 9:45 AM@JvmName
diesieben07
05/21/2017, 9:46 AMdiesieben07
05/21/2017, 9:46 AMvar prop: String? = null
set(newValue) {
}
orangy
int i = new K().setProp(null);
This should work?mg6maciej
05/21/2017, 9:48 AMorangy
argoneus
05/21/2017, 10:03 AMargoneus
05/21/2017, 10:03 AMargoneus
05/21/2017, 10:03 AMargoneus
05/21/2017, 10:03 AMsagar.atalatti
05/21/2017, 10:05 AMargoneus
05/21/2017, 10:13 AMargoneus
05/21/2017, 10:14 AM