nathanchere_slack
12/19/2017, 8:40 AMkotlinc --script
how do you include/import/whatever another file
like if i want to have a common.kts
karelpeeters
12/19/2017, 1:17 PMassert(a == b) { "a wasn't equal to b" }
from the stdlib?nathanchere_slack
12/19/2017, 3:04 PMvoddan
12/20/2017, 5:11 PMtimurnav
12/20/2017, 11:12 PM(0 until list.size - 1). filter{ list[it] == list[it + 1] }
but it doesn't work for case 333
-> 33
Do I not undestand smthng?xenoterracide
12/21/2017, 10:10 AMdoThing() if true
warren
12/22/2017, 12:56 AModay
12/24/2017, 11:50 AM[ ]
instead of arrayOf
oday
12/26/2017, 3:29 PModay
12/26/2017, 5:14 PMcoder
12/28/2017, 7:05 PMxenoterracide
12/28/2017, 7:44 PMlistOf(
"is",
"sec",
"changeset",
"reg",
"fileuploads"
/*
"pdf",
"user-authn"*/
).forEach { if (file("lib/" + it).exists()) includeBuild("lib/" + it) }
I want to rewrite this to simply list lib, and then do the needfulJames Coggan
12/29/2017, 10:09 AMDagan Sandler
01/01/2018, 8:28 AMfun Customer.getMostExpensiveOrderedProduct(): Product? = orderedProducts.maxBy { it.price }
but it's failing and I'm not sure why. The test error is Expected: null
Actual: null
, so that's not really helpful to find out the problemTristan Wiley
01/02/2018, 2:48 AMbartosz.malkowski
01/04/2018, 9:40 AMRandomBK
01/08/2018, 3:22 AMinterface A
interface MutableA : A
interface Container<out E> : List<E>
interface MutableContainer<out MUTABLE : READ, out READ> : Container<READ>, MutableList<MUTABLE>
mwerschy
01/08/2018, 9:30 AMactsasgeek
01/08/2018, 5:05 PMMichael
01/09/2018, 3:13 PMchadmorrow
01/09/2018, 11:19 PMjp
01/10/2018, 10:49 AMkarelpeeters
01/10/2018, 11:01 AMkarelpeeters
01/10/2018, 6:55 PMfor ((index, entry) in map.entries.withIndex()) { ... }
would work if you really need it.cedric
01/11/2018, 11:28 PMinterface Populace {
val people: Set<People>
}
sodiqoladeni
01/12/2018, 2:49 AMedwardwongtl
01/12/2018, 3:20 AM.()
lambda with receiverJoaco
01/13/2018, 4:14 PMShawn
01/15/2018, 5:55 AMpoohbar
01/15/2018, 7:09 PMpoohbar
01/15/2018, 7:09 PMrusshwolf
01/15/2018, 7:18 PMprivate
. By default they’re visible globally.