LeoColman
05/19/2019, 5:25 AMsubstringAfter("X")
where X is a regex? so substringAfter(regex)
Rohan Maity
05/19/2019, 6:44 AMmingkangpan
05/19/2019, 12:04 PMCannot resolve external dependency org.jetbrains.kotlin:kotlin-gradle-plugin:1.3.31 because no repositories are defined.
Required by:
project :
allprojects {
repositories {
mavenCentral()
jcenter()
}
}
plugins {
kotlin("jvm") version "1.3.31"
}
^this is my build.gradle.tks in root folder, what is wrong?cbruegg
05/19/2019, 7:50 PMChi
05/19/2019, 8:12 PM[1,2,null]
will print [1,2]
jw
05/19/2019, 9:00 PMObjects.hashCode(Object...)
which will have an intrinsic in Java 13 (provided it ships)Rohan Maity
05/19/2019, 11:19 PMMatej Drobnič
05/20/2019, 8:08 AMconst
keyword existing? Why can't compiler automatically treat all vals that are assigned to constant value (such as string literal or number literal) as const
? Is there a situation where using const
is not preferred?thana
05/20/2019, 9:15 AMjoelpedraza
05/20/2019, 1:27 PMFlorian
05/20/2019, 2:21 PMFlorian
05/20/2019, 6:40 PMTristan
05/21/2019, 2:19 AMJukka Siivonen
05/21/2019, 9:07 AMpindab0ter
05/21/2019, 1:17 PMDarwon Rashid
05/21/2019, 1:26 PMsnowe
05/21/2019, 2:55 PMStringGroovyMethods#getAt(Matcher matcher, int idx)
method?Ron K
05/21/2019, 3:46 PMSequence<T>.asStream()
to make s Stream out of an Sequence, but https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.streams/kotlin.sequences.-sequence/as-stream.html does not seem to be in the Std-Lib anymore!? (Target is JRE 8)pindab0ter
05/21/2019, 4:36 PMxenoterracide
05/21/2019, 6:41 PM1.0, 2.0, 0.0, 1.0, 2.0,0.0, 2.0, 2.0
, I want 3 lists 1.0, 2.0
, 0.0, 1.0, 2.0
,0.0, 2.0, 2.0
where 0.0
is a sort of delimiter (so if I had more of those, it would be in the list to the right. Is there an obvious operation to make this happen?ushort
05/22/2019, 2:20 AMChris
05/22/2019, 8:41 AMPaul Caswell
05/22/2019, 9:53 AMRok Koncina
05/22/2019, 3:44 PMvalue: Value
to the constructor of each subclass. Any idea how to make this nicer? Thanks!
sealed class BaseStatus(
open val value: Value?
)
data class LoadingStatus(
override val value: Value?
) : BaseStatus(value)
data class DoneStatus(
override val value: Value
) : BaseStatus(value)
data class ErrorStatus(
val error: Throwable,
override val value: Value?,
var consumed: Boolean = false
) : BaseStatus(value)
jw
05/22/2019, 3:45 PMgildor
05/22/2019, 3:47 PMvalue
abstract field instead of constructor property, it's more flexible and less typingDico
05/22/2019, 7:30 PM@KeepMembers
annotation)
Ideally I can keep the kotlin metadata in those classes, or keep the local variable table for constructors so that it will work with Java 8 parameter names module.louiscad
05/22/2019, 7:56 PMburemba
05/23/2019, 11:45 AMU75957
05/23/2019, 1:10 PMU75957
05/23/2019, 1:10 PMRuckus
05/23/2019, 2:29 PMlist1.flatMap { e1 ->
list2.map { e2 -> e1 to e2 }
}
Stephan Schroeder
05/23/2019, 3:22 PMsnowe
05/23/2019, 4:08 PMU75957
05/24/2019, 5:58 AMRuckus
05/24/2019, 1:53 PMsnowe
05/24/2019, 3:52 PM