gradle
8.2

# flatten

open fun <T : Collection<out Any>?> flatten(elements: Array<Any>, addTo: T, flattenMaps: Boolean): T
open fun <T : Collection<out Any>?> flatten(elements: Array<Any>, addTo: T): T
open fun <T : Collection<out Any>?> flatten(elements: Collection<out Any>, addTo: T): T
open fun <T : Collection<out Any>?> flatten(elements: Collection<out Any>, addTo: T, flattenMapsAndArrays: Boolean): T
open fun <T : Collection<out Any>?> flatten(elements: Collection<out Any>, addTo: T, flattenMaps: Boolean, flattenArrays: Boolean): T
open fun flatten(elements: Collection<Any>, flattenMapsAndArrays: Boolean): List<Any>
open fun flatten(elements: Collection<Any>): List<Any>