https://kotlinlang.org logo
#codereview
Title
# codereview
m

michaelsims

05/10/2017, 1:54 PM
Copy code
while (true) {
    val num = fi.read(buf).takeIf { it > 0 } ?: break
    fo.write(buf, 0, num)
}
👍 2
m

mohsenoid

05/10/2017, 1:57 PM
michaelsims: nice!
4 Views