loci.compatibility.Iterable.scala Maven / Gradle / Ivy
The newest version!
package loci
package compatibility
object iterable {
@inline private[loci] def collectFirst[T, U](iterable: IterableOnce[T])(pf: PartialFunction[T, U]) =
iterable collectFirst pf
@inline private[loci] def exists[T](iterable: IterableOnce[T])(p: T => Boolean) =
iterable exists p
}