forcelain
03/04/2018, 1:38 PMdata class Item(
val children: List<Item>
}
is there a way to make a deep (recursive) copy of such an object? item.copy()
creates a copy of the top object only but not the children
sourabhv
03/05/2018, 1:08 PMsourabhv
03/05/2018, 1:11 PM1.2.21
dierre
03/06/2018, 9:23 AMNoSuchElementException
. I found that I can obtain what I want using filter and then checking against list size. I was expecting to return a `T?`(meaning an optional of some kind) instead of T
. So basically instead of doing list.first({p -> predicate}).orElse(defaultObject)
I have to do something like var result = list.filter({p -> predicate}); if(result.isEmpty()) return defaultObject else result.first()
. Do you think there is a better approach?am
03/06/2018, 1:38 PMGiulio
03/11/2018, 12:06 AMresponseBody = myTask.get();
into an async callback?Tarun
03/13/2018, 11:01 AMfun callApi(@NonNull context: Context) : String{
return "hello world!"
}
cody.stringham
03/13/2018, 2:56 PMRegan Russell
03/13/2018, 9:39 PMpoohbar
03/15/2018, 2:30 PModay
03/16/2018, 9:50 AMbartek.t
03/16/2018, 9:57 AMchi
03/19/2018, 6:43 AMSobri
03/19/2018, 6:57 AMjchannon
03/19/2018, 2:36 PMAndreas Sinz
03/20/2018, 8:42 PMedwardwongtl
03/21/2018, 5:28 AMThanos Psaridis
03/21/2018, 12:00 PMUtils.kt
file which I'm calling them in another class but how can someone else find out that those functions reside in the Utils.kt
file just by reading at my code? If you ctrl+click on function IntelliJ takes me to the Utils.kt
file but how can I do that without the help of the ide?mbickel
03/21/2018, 4:47 PMalexandretaz
03/21/2018, 7:26 PMalexandretaz
03/22/2018, 6:12 PMjchannon
03/22/2018, 10:58 PMsandeep
03/23/2018, 5:04 AM/** Property */
PROPERTY,
/** Field, including property's backing field */
FIELD,
zpearce
03/23/2018, 9:11 PMwith()
against that? with(MyJavaType) {}
complains about MyJavaType not having a companion object.kristofdho
03/24/2018, 12:40 AMit.matches(Regex("\.[abc]\."))
benleggiero
03/24/2018, 2:15 AM_main
modules? They aren’t mentioned on https://kotlinlang.org/docs/reference/multiplatform.html
https://i.imgur.com/s0HnpUk.png▾
pal0810
03/25/2018, 1:39 PMsarna
03/26/2018, 5:21 PModay
03/29/2018, 6:42 AMGerard Klijs
03/29/2018, 10:37 AMGerard Klijs
03/29/2018, 10:37 AMnfrankel
03/29/2018, 11:01 AMGerard Klijs
03/29/2018, 11:06 AMnfrankel
03/29/2018, 11:08 AM