gradle
8.2

# filter

open fun <T> filter(set: Set<out T>, filter: Spec<out Any>): Set<T>
open fun <T> filter(list: List<out T>, filter: Spec<out Any>): List<T>
open fun <T> filter(array: Array<T>, filter: Spec<out Any>): List<T>
open fun <T, C : Collection<T>?> filter(source: Iterable<out T>, destination: C, filter: Spec<out Any>): C
open fun <K, V> filter(map: Map<K, V>, filter: Spec<Map.Entry<K, V>>): Map<K, V>
open fun <K, V> filter(map: Map<K, V>, destination: Map<K, V>, filter: Spec<Map.Entry<K, V>>): Map<K, V>