littlelightcz
07/06/2018, 9:38 AMlittlelightcz
07/06/2018, 9:41 AMlittlelightcz
07/06/2018, 9:44 AMspand
07/06/2018, 9:48 AMCollection
or List
?littlelightcz
07/06/2018, 9:53 AMList
, Collection
, Array
, Set
... maybe even on sequences or iterables (but I am not sure about these ones). I use mostly just the List
and rarely an Array
, but it's hard to guess where other people might need this as well.Aregev2
07/06/2018, 10:43 AMorangy
littlelightcz
07/06/2018, 1:12 PMAregev2
07/06/2018, 1:15 PMorangy
littlelightcz
07/06/2018, 1:32 PMlittlelightcz
07/06/2018, 1:34 PMRandom()
instance or not (due to performance)Aregev2
07/06/2018, 1:35 PMAregev2
07/06/2018, 1:35 PMAregev2
07/06/2018, 1:38 PMlittlelightcz
07/06/2018, 1:42 PMAregev2
07/06/2018, 1:44 PMAregev2
07/06/2018, 1:44 PMAregev2
07/06/2018, 1:46 PMspand
07/06/2018, 1:52 PMMutableList<T>.shuffle()
Aregev2
07/06/2018, 1:52 PMspand
07/06/2018, 1:53 PMAregev2
07/06/2018, 1:54 PMspand
07/06/2018, 1:54 PMAregev2
07/06/2018, 1:54 PMspand
07/06/2018, 1:54 PMAregev2
07/06/2018, 1:55 PMspand
07/06/2018, 1:56 PMlittlelightcz
07/07/2018, 1:56 PMshuffle()
could be quite expensive to call.ilya.gorbunov
07/09/2018, 4:34 PMRandom
API to the common standard library. There will be no function to select a random element from a list for now, but it will be trivial to implement as an extension with that API.
See the KEEP: https://github.com/Kotlin/KEEP/issues/131gildor
07/09/2018, 4:46 PMkarelpeeters
07/09/2018, 5:04 PMimport
statements are next to trival, no one ever reads them.ilya.gorbunov
07/09/2018, 5:09 PMilya.gorbunov
07/09/2018, 5:11 PMlittlelightcz
07/09/2018, 7:03 PMAregev2
07/09/2018, 8:59 PMAregev2
07/09/2018, 9:01 PMkarelpeeters
07/09/2018, 9:02 PM.filter { ... }.choose()
Aregev2
07/09/2018, 9:17 PMthomasnield
07/11/2018, 12:53 PMlittlelightcz
07/14/2018, 10:43 AM