Patrick Inshuti Makuba
03/29/2018, 1:15 PMEgor Trutenko
03/30/2018, 2:27 PMbigkahuna
03/30/2018, 6:14 PMShawn
03/30/2018, 9:46 PMmiha-x64
03/31/2018, 3:11 PMvar value: T
/**
* Returns current value.
*/
get <-- 'redundant getter'
/**
* Changes value and notifies listeners. Will break current binding, if any.
*/
set <-- 'redundant setter'
UPD: found: https://youtrack.jetbrains.com/issue/KT-17962joe_androidsecurity
04/02/2018, 7:57 PMbj0
04/02/2018, 8:06 PMjson.get("document")
, etcbj0
04/02/2018, 8:10 PMzucen.co
04/03/2018, 7:12 AMRak
04/04/2018, 11:36 AMKonstantin Petrukhnov
04/04/2018, 11:38 AMLunzi
04/05/2018, 6:31 AMjinbeom hong
04/05/2018, 8:32 PMval sum: Int.(Int) -> Int = { other -> plus(other) }
val sum = fun Int.(other: Int): Int = plus(other)
According to document(https://kotlinlang.org/docs/reference/lambdas.html#function-literals-with-receiver), when i use anonymous function, The anonymous function syntax allows you to specify the receiver type of a function literal directly. This can be useful if you need to declare a variable of a function type with receiver, and to use it later.
. What does it mean? Why do i can’t use a variable of function type(not anonymous function but val intPlus: Int.(Int) -> Int = Int::plus
) later?zucen.co
04/07/2018, 8:15 AMstephan_marshay
04/09/2018, 7:11 PMfun isValidGender(gender: Int): Boolean {
return gender == PetEntry.GENDER_UNKNOWN || gender == PetEntry.GENDER_MALE || gender == PetEntry.GENDER_FEMALE
}
quocdev
04/10/2018, 3:41 AMThanos Psaridis
04/11/2018, 7:16 AMdiesieben07
04/11/2018, 9:27 AMSurya Poojary
04/11/2018, 3:43 PMSlackbot
04/11/2018, 6:38 PMSiebelsTim
04/12/2018, 6:48 AMgenerateCmponent
does not return anything. Then look at the call-order. generateCmponent
is called first, adding the table. After that, the body is generated. I would suggest that you return your table from the generateCmponent
function and not append the writer.otakusenpai
04/14/2018, 1:49 PMotakusenpai
04/14/2018, 1:49 PMkarelpeeters
04/14/2018, 4:24 PMfilter
doesn't remove items, it creates a new list. I believe there's something like .removeIf
karelpeeters
04/15/2018, 1:41 PMmtl
04/16/2018, 12:14 PMCould not determine Java version using executable /usr/lib/jvm/java-10-openjdk/bin/java
- not really sure how it's impossible to determine the JDK version from that. EDIT: Looks like https://github.com/gradle/kotlin-dsl/issues/816 i.e. Gradle, Kotlin and OpenJDK 10 don''t play nicely togetherholgerbrandl
04/17/2018, 7:41 AMUnit
is the void
equivalent, why is it assignable in kotlin but not in java?diesieben07
04/18/2018, 8:59 AMNothing
can also be used in other ways, especially in combination with generics.Loránd
04/18/2018, 8:59 AMkarelpeeters
04/18/2018, 6:19 PMthis
?