elect
08/08/2017, 3:20 PMPaul Woitaschek
08/08/2017, 3:48 PMPaul Woitaschek
08/08/2017, 3:48 PMmanuell
08/08/2017, 4:06 PMmanuell
08/08/2017, 4:11 PMByteArrayDataInput
from Guava, etc.
1 reply
About Guava, Are there real benefits using unsignedBytes instead of promoting byte to int? I've to work with a lot of unsigned valuescharlesv
08/08/2017, 6:26 PMmutableListOf()
of anonymous functions -- what Type would this be?charlesv
08/08/2017, 6:26 PMmutableList.add(fun() { ... })
// Function w/o a returnkioba
08/08/2017, 6:28 PM() -> Unit
but its an interesting question 🙂charlesv
08/08/2017, 6:28 PMcharlesv
08/08/2017, 6:29 PMmutableListOf(() -> Unit)
diesieben07
08/08/2017, 6:29 PM() -> Unit
is the type.raulraja
08/08/2017, 6:29 PMraulraja
08/08/2017, 6:29 PMmutableListOf<() -> Unit>(...)
agomez
08/08/2017, 6:30 PMtypealias
for readability purposes?charlesv
08/08/2017, 6:30 PMcharlesv
08/08/2017, 6:30 PMcharlesv
08/08/2017, 6:30 PMraulraja
08/08/2017, 6:31 PMFunction0<Unit>
agomez
08/08/2017, 6:59 PMtypealias listOfConsumers
agomez
08/08/2017, 6:59 PMagomez
08/08/2017, 6:59 PMkevinmost
08/08/2017, 7:50 PMtypealias Action = () -> Unit
val list = mutableListOf<Action>(
{ /* one function */ },
{ /* second function */ }
)
raulraja
08/08/2017, 8:31 PMgroostav
08/08/2017, 8:58 PMkevinmost
08/08/2017, 8:58 PMkevinmost
08/08/2017, 8:58 PMkitty
08/09/2017, 1:06 AMmbstavola
08/09/2017, 1:11 AMmbstavola
08/09/2017, 1:11 AMkitty
08/09/2017, 1:18 AM