optional

Pseudo immutable optional with a value or not.

  1. Optional!T optional(T optional)
  2. Optional!T optional(T optional)
    @safe
    optional
    (
    T
    )
    (
    return T optional
    )
  3. Optional!T optional()
  4. struct Optional(T)

Parameters

optional T

value to contain in the optional itself.

Return Value

Type: Optional!T

An optional filled or not with value.

Meta