TicTacToe - 0.1.0

Stdlib.Data.Maybe.Base

Definitions

type Maybe (A : Type)Source#

Represents an optional value that may or may not be present. Providing a way to handle null or missing values in a type-safe manner.

Constructors

| nothing : Maybe A
| just : AMaybe A

fromMaybe : {A : Type}AMaybe AASource#

Extracts the value from a Maybe if present, else returns the given value.

maybe : {A : Type}{B : Type}B(AB)Maybe ABSource#

Applies a function to the value from a Maybe if present, else returns the given value.