emmanuelvinas
07/10/2017, 12:54 PMevkaky
07/10/2017, 1:14 PMenumerate(arr, fromId)
built-in function for that purpose:
for elem in enumerate(arr, 2): // elem = arr[2], arr[3] ... arr[n-1]
Is there something like that in kotlin std lib?Paul Woitaschek
07/10/2017, 1:22 PMrohith
07/10/2017, 2:54 PMkarelpeeters
07/10/2017, 3:17 PMnew Task;
, that's not really valid Java. Are you sure there's not some issue with the decompiler? Kotlin does sometimes generate bytecode that doesn't have a valid Java counterpart.musachy
07/10/2017, 5:32 PMjlleitschuh
07/10/2017, 6:08 PMrogeralsing
07/10/2017, 6:10 PMrogeralsing
07/10/2017, 8:36 PMTaskCompletionSource<T>
which can be used to set results to a Task.
My impression here is that Deferred<T>
maps roughly to Task<T>
in .NET, right?
is there any way to get a Deferred that can be completed via code?danneu
07/10/2017, 9:14 PM1.1.3-2
? is it some sort of release candidate or an intermediate release?kirillrakhman
07/11/2017, 8:46 AM{}
to a function expecting () -> Any
because the lambda returns Unit
which is a subtype of Any
. That's ... interestingjoelpedraza
07/11/2017, 4:10 PMmartindg
07/11/2017, 5:58 PMkarelpeeters
07/11/2017, 10:27 PMclass MyClass {
var a: Int
init {
computeA()
}
private fun computeA() {
a = 5
}
}
The compiler complains that I have to initialize a
, apparently it can't tell computeA()
does initialize it.kotlin_questions
07/12/2017, 2:09 AMkotlin_questions
07/12/2017, 2:28 AMpniederw
07/12/2017, 3:00 AMjava.io.File
+ Kotlin extensions and java.nio.file.Path/Files
without. Wish I wouldn’t need to make a choice between better API usability and better file system implementation.w_bianrytree
07/12/2017, 12:15 PMpawel.rybicki
07/12/2017, 1:37 PMAny
if its not a List
kevinherron
07/12/2017, 4:10 PMjoelpedraza
07/12/2017, 6:48 PMtschuchort
07/12/2017, 7:00 PMorangy
07/12/2017, 8:00 PMkevinherron
07/12/2017, 8:51 PMrogeralsing
07/13/2017, 7:28 AMevanchooly
07/13/2017, 8:11 AMwasyl
07/13/2017, 9:03 AMString getName()
in interface would be implemented by val name: String
property. I get same JVM signature
error, although this SO answer suggests that having the property private
would solve the problem: https://stackoverflow.com/questions/29268526/how-to-overcome-same-jvm-signature-error-when-implementing-a-java-interfacerajendhiraneasu
07/13/2017, 10:52 AMbadlogic
07/13/2017, 3:32 PMhttps://youtu.be/MGmdGUVWHOU▾
mkporwit
07/14/2017, 12:12 AMmkporwit
07/14/2017, 12:12 AMilya.gorbunov
07/14/2017, 12:28 PMDeprecated(HIDDEN)
which hides the deprecated member completely.