Show / Hide Table of Contents

Class Maybe

Constructor functions, extension methods and utilities for working with Maybe<T>

Inheritance
Object
Maybe
Namespace: Pidgin
Assembly: Pidgin.dll
Syntax
public static class Maybe : object

Methods

| Improve this Doc View Source

Just<T>(T)

Creates a Maybe<T> containing a value

Declaration
public static Maybe<T> Just<T>(T value)
Parameters
Type Name Description
T value

The value of the new Maybe<T>

Returns
Type Description
Maybe<T>

A Maybe<T> containing the specified value

Type Parameters
Name Description
T

The type of the contained value

| Improve this Doc View Source

Nothing<T>()

Creates a Maybe<T> containing no value

Declaration
public static Maybe<T> Nothing<T>()
Returns
Type Description
Maybe<T>

A Maybe<T> containing no

Type Parameters
Name Description
T

The type of the absent value

  • Improve this Doc
  • View Source
Back to top Generated by DocFX