maybe

package
v0.12.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 15, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNone = errNone

Functions

This section is empty.

Types

type Maybe

type Maybe[T any] func() *T

func Bind

func Bind[A, B any, M Maybe[A]](maybe M, fn func(A) Maybe[B]) Maybe[B]

func Map

func Map[A, B any, M Maybe[A]](maybe M, fn func(A) B) Maybe[B]

func None

func None[T any]() Maybe[T]

func Some

func Some[T any](t T) Maybe[T]

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL