Maybe

scalus.prelude.Maybe
See theMaybe companion object
enum Maybe[+A]

Attributes

Companion
object
Graph
Supertypes
trait Enum
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Type members

Enum entries

final case class Just[+A](value: A)
case Nothing extends Maybe[Nothing]

Value members

Concrete methods

def map[B](f: A => B): Maybe[B]
Extension method from Maybe
def toOption: Option[A]
Extension method from Maybe

Converts a Maybe to an Option

Converts a Maybe to an Option

Attributes