mutable List
inline fun <T, F : Comparable<F>> mutableList(size: Int, crossinline factory: (index: Int, random: Random) -> T, noinline clone: ChromosomeMutableList<T, F>.() -> ChromosomeMutableList<T, F>?): PopulationFactory<MutableList<T>, F>
Creates PopulationFactory for ChromosomeMutableList with size.
Parameters
factory
factory for creating T by index
clone
function to correct cloning ChromosomeMutableList
inline fun <T, F : Comparable<F>> Random.mutableList(size: Int, factory: (index: Int, random: Random) -> T, noinline clone: ChromosomeMutableList<T, F>.() -> ChromosomeMutableList<T, F>? = null): ChromosomeMutableList<T, F>
Create ChromosomeMutableList instance
Parameters
size
gene count
factory
factory for randomly generate array of T