intersect

open fun <T> intersect(specs: Array<Spec<in T>>): Spec<T>(source)
open fun <T> intersect(specs: Collection<out Spec<in T>>): Spec<T>(source)

Returns a spec that selects the intersection of those items selected by the given specs. Returns a spec that selects everything when no specs provided.