Option orElse orElse returns the original Option if not None, or returns the provided Option as an alternative in that case: def orElse[B >: A](ob: => Option[B]): Option[B] = this map (Some(_)) getOrElse ob Option
Login in to like
Login in to comment