demonwav
02/11/2018, 1:39 AMRick
02/11/2018, 2:45 AMpablisco
02/11/2018, 3:30 PMaeruhxi
02/12/2018, 8:15 AMdeviant
02/12/2018, 11:07 AMdimsuz
02/12/2018, 4:47 PMbefore_script:
- echo "kotlin.incremenal=false" > ~/.gradle/gradle.properties
danielgomezrico
02/12/2018, 9:16 PMOlekss
02/13/2018, 7:36 AMSankar
02/13/2018, 7:38 AMdstarcev
02/13/2018, 3:00 PMthird == null
instead of IndexOutOfBoundsException
with destructuring?
val (first, second, third) = "hello,world".split(",")
jlleitschuh
02/13/2018, 5:16 PMhttps://i1.wp.com/blog.jetbrains.com/kotlin/files/2015/11/Kotlin-GitHub-LOC.png▾
dave08
02/13/2018, 5:46 PMnew HashMap() {{ put("this", true) }};
== mapOf("this" to true)
(note the double {{
)?bennofs
02/13/2018, 10:14 PMwith
(not modifying the implementation of the Weird
class) Not that I'd actually write this codeilya.gorbunov
02/14/2018, 3:44 AMset
function invocation. There are two ways to overcome this:
- surround lambda with parentheses: ({ refreshRightText.set("") })
- place ;
between set
and the lambda:
refreshRightText.set(refreshText);
{ refreshRightText.set("") }
aeruhxi
02/14/2018, 7:15 AMdata class Post(
val id: String,
val content: String,
val timestamp: Long,
val photos: List<String>
) : Model()
data class FullPost(
val id: String,
val content: String,
val timestamp: Long,
val photos: List<String>,
val postedBy: User,
val with: List<User>,
val checkedIn: Restaurant,
val actType: String,
val likesCount: Int
) : Model()
Is there a better way to copy the fields of Post to FullPost? So that I don't have to repeat fields like thisalexcouch
02/14/2018, 8:58 AMOlekss
02/14/2018, 9:29 AMdh44t
02/14/2018, 11:22 AMrobstoll
02/14/2018, 12:47 PMsindrenm
02/14/2018, 1:41 PMEfe
02/14/2018, 2:09 PMEfe
02/14/2018, 3:06 PMelect
02/14/2018, 3:45 PMfun Context?.destroy()
from java?dalexander
02/14/2018, 4:11 PM() -> {...}
or define your interfaces in Java.karelpeeters
02/14/2018, 6:09 PM.filterNonNull()
inbetween?elect
02/14/2018, 7:24 PMtimm
02/14/2018, 7:31 PMbuild/resources
isn't added to the classpath when launching a gradle project via "Run/Debug" in IntelliJ?elect
02/14/2018, 8:09 PMx
is what I need to findbj0
02/14/2018, 8:12 PMcheck()
doesn't return a booleancygnus
02/14/2018, 10:32 PMcygnus
02/14/2018, 10:32 PMCzar
02/14/2018, 10:35 PMcygnus
02/14/2018, 10:48 PM