voddan
05/05/2016, 7:02 PMoperator, i didn't know how to google itexactly!
kevinmost
05/05/2016, 7:15 PMloganj
05/05/2016, 7:17 PMloganj
05/05/2016, 7:17 PMloganj
05/05/2016, 7:18 PMkevinmost
05/05/2016, 7:18 PMkevinmost
05/05/2016, 7:18 PMloganj
05/05/2016, 7:19 PMloganj
05/05/2016, 7:21 PMdean
05/05/2016, 7:21 PM..
operator isn't common, so it should be recognized as to what it meansdean
05/05/2016, 7:23 PMkevinmost
05/05/2016, 7:24 PM..
operator. Most people want to know how to use an indexed for loop at some pointkevinmost
05/05/2016, 7:24 PM..
operator is common". My bad simple smiledean
05/05/2016, 7:27 PM"abcdef"[3]
should be easily recognized as 'd'
and "abcdef"[2..4]
as "cde"
marcinmoskala
05/05/2016, 7:45 PMilya.gorbunov
05/05/2016, 7:45 PMoperator get
with a range argument (and dropped those existed before 1.0) until we sort out with slices feature https://youtrack.jetbrains.com/issue/KT-10876sreich
05/05/2016, 8:31 PMsreich
05/05/2016, 8:31 PMmichaelrocks
05/05/2016, 8:43 PMmutableListOf
then.sreich
05/05/2016, 8:45 PMsreich
05/05/2016, 8:45 PMcbruegg
05/05/2016, 8:46 PMkevinmost
05/05/2016, 8:52 PMkevinmost
05/05/2016, 8:52 PMArrayList(5000).apply { /* add initial elements */ }
, not nearly as nice. We could roll our own function but it seems like a standard thing to wantorangy
kevinmost
05/05/2016, 11:50 PMorangy
fun <T> arrayListOf(vararg elements: T, size: Int = -1): MutableList<T> { .. }
kevinmost
05/05/2016, 11:51 PMsize
can only be given as a named param, right?orangy
arrayListOf("3", "2", "1", 4) // MutableList of Any
arrayListOf("3", "2", "1", size = 4) // MutableList of String of size 4
orangy