Lukas Cardot
04/16/2019, 7:45 AMPaul Woitaschek
04/16/2019, 8:27 AMjpfarias
04/16/2019, 10:31 AMprivate float[][] labelProbArray = new float[1][256*256]
?jpfarias
04/16/2019, 11:20 AMcamdenorrb
04/16/2019, 11:31 AMMarc Reichelt
04/16/2019, 1:59 PMLeoColman
04/16/2019, 3:59 PMChar.isDigit
to not have it's opposite Char.isNotDigit
?tristan bergh
04/16/2019, 4:43 PMAndrew Gazelka
04/16/2019, 7:05 PMfoo()
of class Bar
Bar#foo()
. Is it appropriate to reference property baz
of Bar
as Bar#baz
?Smallville7123
04/16/2019, 7:18 PMif (expansion.length != 0)
if (expansion.last().equals(' ')) return expansion.dropLast(1).toString()
return expansion.toString()
alexsullivan114
04/16/2019, 8:46 PMOptional
objects. Am I missing something here?jw
04/16/2019, 8:47 PMSmallville7123
04/17/2019, 4:06 AMSmallville7123
04/17/2019, 4:47 AMthana
04/17/2019, 6:19 AMwhen
statement which is more or less unreadibl. so again i end up with a visitor for this class. how do you handle this situation?Smallville7123
04/17/2019, 8:07 AMlkonya
04/17/2019, 9:00 AMtask buildZip(type: Zip) {
from compileKotlin
from processResources
into("lib") {
from configurations.compileClasspath
}
}
But this include only the classes I created, not classes created by annotation processing. The build process create the classes made by annotation processing under tmp/kapt3/classes/main
. Do you know a way to include these files as well?JM Santos
04/17/2019, 9:59 AMcarlos cdmp
04/17/2019, 10:30 AMlist.filter { it is A }.forEachIndexed { index, item -> (item as A)
Is there any way to smartcast it?Lawik
04/17/2019, 11:54 AM(person::class.companionObjectInstance as PersonDTO.Companion)
(person is an instance of PersonDTO)JM Santos
04/17/2019, 2:46 PMHullaballoonatic
04/17/2019, 7:58 PMlist.any it.hasFoo
Andrew Gazelka
04/17/2019, 7:58 PMHullaballoonatic
04/17/2019, 8:00 PMdata class Foo {
companion object {
operator fun invoke(): Foo {
}
}
}
Casey Brooks
04/17/2019, 8:30 PMby
keyword on extension properties, so that I can pass this
through to the delegate?Patrick Jackson
04/17/2019, 8:34 PM"[^\\p{Alnum}]".toRegex().find("s.trim μεγιουνικουντ n/o/n a.lph.a n.um\"")
Works in Java with:
p = Pattern.compile("[^\\p{Alnum}]", Pattern.UNICODE_CHARACTER_CLASS);
however do not see an equivalent in KotlinHawk
04/17/2019, 9:58 PMmvn package
on wsl (ubuntu 1804) using the default jdk (10) as well as openjdk11 both give the same error. Same error when I try and run from intellij (right click green arrow -> run ). Any ideas 😕bloder
04/17/2019, 10:43 PMinline class
what happens if I have an inline class as parameter of another inline class?
inline class Bar(val number: Int)
inline class Foo(val bar: Bar)
Foo(Bar(1)) == 1?
Smallville7123
04/18/2019, 5:35 AMR
represents a kotlin.function
right? thus fun a(R) {
R.invoke()
}
will take a function accepting 0 parameters, then execute that function right?Slackbot
04/18/2019, 8:01 AMSlackbot
04/18/2019, 8:01 AMPavlo Liapota
04/18/2019, 8:21 AMif (line.startsWith('/')) line.drop(1) else line
or
line.let {
if (it.startsWith('/')) it.drop(1) else it
}
Smallville7123
04/18/2019, 8:27 AMif (line.startsWith('/')) {
line.drop(1)
val str = StringBuilder()
val parser = Parser(line.toStack())
// modify the following, pulled from "fun String.collapse(token: String, replaceWith: String): String"
val t = parser.IsSequenceOneOrMany(" ")
while (parser.peek() != null) {
if (t.peek()) {
t.pop()
str.append(replaceWith)
}
else str.append(parser.pop()!!)
}
}
but make the drop(1) part of the if expression itself