jw
04/19/2018, 7:35 PMFuyang
04/19/2018, 7:36 PMtoXXX()
basically does the copy thing, I suppose? 🤔Andreas Sinz
04/19/2018, 7:37 PMtoXX()
create a shallow copyFuyang
04/19/2018, 7:44 PMlength
and Set has size
jw
04/19/2018, 7:47 PMjw
04/19/2018, 7:47 PMFuyang
04/19/2018, 7:50 PMFuyang
04/19/2018, 7:58 PMtable.get(key1, key2)
table.save(key1, key2, value)
deepTable.get(key1, key2, key3)
deepTable.save(key1, key2, key3, value)
Is there some data format I could use in kotlin? 🤔jw
04/19/2018, 8:06 PMjw
04/19/2018, 8:20 PMtypealias <K1, K2, V> Table<K1, K2, V> = Map<Pair<K1, K2>, V>
Fuyang
04/19/2018, 8:25 PMadam-mcneilly
04/19/2018, 8:39 PMtextWatcherListener
has not been defined yet:
init {
TextView(applicationContext).addTextChangedListener(textWatcherListener)
}
val textWatcherListener = object: TextWatcher {
override fun beforeTextChanged(a: CharSequence?, b: Int, c: Int, d: Int) {
}
override fun onTextChanged(a: CharSequence?, b: Int, c: Int, d: Int) {
}
override fun afterTextChanged(a: Editable?) {
}
}
However, if I put textWatcherListener
first, it works fine. That's okay, but I'm just trying to understand the technical explanation for why it has to be first and why it can't resolve it at compile time?user
04/19/2018, 8:40 PMadam-mcneilly
04/19/2018, 8:41 PMAndreas Sinz
04/19/2018, 8:45 PMadam-mcneilly
04/19/2018, 8:46 PMGarouDan
04/19/2018, 9:40 PMkotlin-stdlib
package preferred instead of kotlin-stdlib-jdk8
if we would like compatibility with the latest Java version?
https://mvnrepository.com/artifact/org.jetbrains.kotlin/kotlin-stdlib
https://mvnrepository.com/artifact/org.jetbrains.kotlin/kotlin-stdlib-jdk8jw
04/19/2018, 9:41 PMjw
04/19/2018, 9:41 PMGarouDan
04/19/2018, 9:42 PMGarouDan
04/19/2018, 9:42 PMjw
04/19/2018, 9:43 PMAlex Lokkie
04/20/2018, 12:08 AMzake
04/20/2018, 3:03 AMFile("src/test/resources/file.txt")
?diesieben07
04/20/2018, 8:52 AMFleshgrinder
04/20/2018, 8:52 AMdiesieben07
04/20/2018, 8:53 AMfun <T : MyBaseClass> T.someFunction(): T
But you use polymorphismFleshgrinder
04/20/2018, 8:53 AMdiesieben07
04/20/2018, 8:53 AMAyden
04/20/2018, 12:31 PM