Otek
04/30/2018, 4:37 PMAndreas Sinz
04/30/2018, 4:37 PMOtek
04/30/2018, 4:37 PMAndreas Sinz
04/30/2018, 4:38 PMOtek
04/30/2018, 4:38 PMOtek
04/30/2018, 4:38 PMAndreas Sinz
04/30/2018, 4:38 PMOtek
04/30/2018, 4:39 PMOtek
04/30/2018, 4:41 PMOtek
04/30/2018, 4:41 PMkarelpeeters
04/30/2018, 4:41 PMwith(Settings) { "test".rep("t", "k") }
.Andreas Sinz
04/30/2018, 4:41 PMStrings.rep
on Try Kotlinkarelpeeters
04/30/2018, 4:42 PMOtek
04/30/2018, 4:42 PMOtek
04/30/2018, 4:42 PMOtek
04/30/2018, 4:42 PMShawn
04/30/2018, 4:43 PMAndreas Sinz
04/30/2018, 4:43 PMOtek
04/30/2018, 4:44 PMOtek
04/30/2018, 4:44 PMOtek
04/30/2018, 4:44 PMkarelpeeters
04/30/2018, 4:59 PMAndreas Sinz
04/30/2018, 5:02 PMobject Strings
thats surrounding itAndreas Sinz
04/30/2018, 5:04 PMString.replace()
https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.text/replace.htmlOtek
04/30/2018, 5:04 PMOtek
04/30/2018, 5:04 PMJoshua F
05/06/2018, 8:44 AM==
on the same type in equals
? This results in an inf loop and took me a little to track down.
override fun equals(other: Any?): Boolean {
if (other == this) {
return true
}
if (other !is Player) {
return false
}
return other.login == login
}
karelpeeters
05/06/2018, 8:48 AM==
, and you'd clearly recognize it in the debugger.Joshua F
05/06/2018, 8:48 AMJoshua F
05/06/2018, 8:48 AM