All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.softwaremill.macwire.Util.scala Maven / Gradle / Ivy

The newest version!
package com.softwaremill.macwire

private[macwire] object Util {
  def firstNotEmpty[T](fs: (() => List[T])*): Option[List[T]] = {
    for (f <- fs) {
      val r = f()
      if (!r.isEmpty) return Some(r)
    }

    None
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy