//
pkg.gl
Category
github.com/DioneProtocol/odysseygo
utils
maybe
package
1.10.11
Repository:
https://github.com/dioneprotocol/odysseygo.git
Documentation:
pkg.go.dev
Overview
Versions
1
Dependencies
1
Dependents
3
Files
46 SLOC
#
Functions
Bind
Bind returns Nothing iff [m] is Nothing.
Equal
Equal returns true if both m1 and m2 are nothing or have the same value according to [equalFunc].
Nothing
Nothing returns a new Maybe[T] with no value.
Some
Some returns a new Maybe[T] with the value val.
#
Structs
Maybe
Maybe T = Some T | Nothing.