debug
07/24/2016, 3:53 AMvoddan
07/24/2016, 6:54 AM(0..size - 1).map {"Hello"}
voddan
07/24/2016, 6:54 AMvoddan
07/24/2016, 6:55 AMdebug
07/24/2016, 6:58 AMdebug
07/24/2016, 7:00 AMInt
and the not the resulting range. 😛yoavst
07/24/2016, 9:06 AM(0 until size)
amaranth
07/24/2016, 10:36 AMamaranth
07/24/2016, 10:40 AMfun <T> mutableListOf(size: Int, init: (Int) -> T): MutableList<T> = if (size == 0) ArrayList() else (0 until size).mapTo(ArrayList(size)) { init(it) }
That got a lot simplervoddan
07/24/2016, 10:51 AMArray(10) {0}
, e.i. List(10) {0}
cedric
07/24/2016, 1:45 PMrepeat(size)
over (0 until size)
sreich
07/24/2016, 1:52 PMilya.gorbunov
07/24/2016, 7:25 PMEugenio
07/24/2016, 10:14 PMnull
is potentially a valid valueEugenio
07/24/2016, 10:15 PMilya.gorbunov
07/24/2016, 10:20 PMamaranth
07/25/2016, 4:35 AMamaranth
07/25/2016, 4:37 AMEugenio
07/25/2016, 9:27 AMcombineReducers
implementation I need to know exactly if a value was set (even if null
) otherwise the relative reducer will have to initialise its own state:
https://github.com/Takhion/Redux.kt/blob/master/src/main/kotlin/me/eugeniomarletti/redux/internal/CombinedReducer.kt#L19dean
07/25/2016, 5:40 PMdean
07/25/2016, 5:41 PMinline
but this would be really cool to havedean
07/25/2016, 5:42 PMtailrec
michaelrocks
07/25/2016, 5:47 PMkirillrakhman
07/26/2016, 11:28 AMkirillrakhman
07/26/2016, 11:28 AMthomasnield
08/04/2016, 12:59 PMmichaelrocks
08/04/2016, 1:04 PMmichaelrocks
08/04/2016, 1:04 PMmichaelrocks
08/04/2016, 1:06 PMorangy