strelok
06/05/2017, 1:20 PMkrissrex
06/05/2017, 9:01 PMscott
06/05/2017, 9:02 PMstrelok
06/06/2017, 3:21 AMmaplonki
06/06/2017, 4:55 AMthis.contentFragment
is nullable, but i can just null check it
var contentFragment: Fragment? = null
fun exec(contentFragment: Fragment) {
if (contentFragment::class == this.contentFragment?::class) return
}
Slackbot
06/06/2017, 8:50 AMSlackbot
06/06/2017, 8:53 AMandyb
06/06/2017, 2:26 PMtulio
06/06/2017, 2:31 PMchb0kotlin
06/06/2017, 6:09 PMFile.walk
someone got a handy examplesquinky
06/07/2017, 3:46 AMrattrayalex
06/07/2017, 4:47 PMit
feature of Kotlin? Does it cause problems/confusions?orangy
06/07/2017, 5:24 PMvaskir
06/07/2017, 6:58 PMmolikto
06/08/2017, 6:12 AMplus
and plusAssign
the same time? This can be handy for mutable data types, like Vector2
in libGDXillaz
06/08/2017, 7:35 AMillaz
06/08/2017, 7:37 AMwitoldsz
06/08/2017, 2:30 PMwith (x) {a() b() c()}
work? Do the a()
and b()
execute on the same instance of x
, or do the result of a()
can "update" the x
, so the following methods run on what a()
returned?forcelain
06/08/2017, 4:52 PMItem
. Item
has a list of another Item
. Is there a way to recursively collect all subitems for a given item into a flat list?snowe
06/08/2017, 4:53 PMmg6maciej
06/08/2017, 8:37 PMilya.gorbunov
06/09/2017, 1:01 AMDalinar
06/09/2017, 3:41 AMinner
then it is static? The docs don't really say anything about thatdominikabee
06/09/2017, 8:29 AMmnawrot
06/09/2017, 11:01 AMis
inside when()
statement?
something like :
when(someVariable) {
is Int or is String {
\\\something
}
}
nitrog42
06/09/2017, 1:22 PMchb0kotlin
06/09/2017, 6:16 PMprivate fun hash(f: File): String {
MessageDigest.getInstance(hashAlgo)?.let {
FileInputStream(f).let { f ->
IOUtils.copy(f, DigestOutputStream(NullOutputStream(), it))
f.close()
}
it.digest().map { String.format("%02x",it) }.reduce{String::plus}
}
throw RuntimeException("Something went wrong")
}
Slackbot
06/10/2017, 10:07 AMtvede
06/10/2017, 10:31 AMEugenio
06/10/2017, 12:30 PMEugenio
06/10/2017, 12:30 PMvoddan
06/10/2017, 1:02 PMroman.belov
06/10/2017, 1:03 PMEugenio
06/10/2017, 1:03 PM