fputil

package
v0.0.0-...-18512eb Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2026 License: BSD-2-Clause Imports: 2 Imported by: 0

Documentation

Overview

Package fputil provides utility functions for working with fp-go types

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ToEither

func ToEither[ER, A any](ioe IOE.IOEither[ER, A]) E.Either[ER, A]

ToEither executes an IOEither to get an Either result. This is useful for converting deferred side effects into immediate Either values.

Example:

result := ToEither(loadFromAPI(id))
E.Fold(handleError, handleSuccess)(result)

Types

This section is empty.

Jump to

Keyboard shortcuts

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