fp

package module
v0.0.0-...-ada8b72 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2023 License: BSD-3-Clause Imports: 0 Imported by: 0

README

fp

Experiments with Go1.18 functional programming

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Compose

func Compose[A, B, C any](g func(a A) B, f func(b B) C) func(A) C

Compose returns h = f . g

func Const

func Const[T any](a T) func() T

Const returns a function that produces a.

func Unit

func Unit[T any](_ T) T

Unit returns unit for any input => the zero value for T.

Types

This section is empty.

Directories

Path Synopsis
dom
Package dom will some day provide utilities for HTMLbook DOMs.
Package dom will some day provide utilities for HTMLbook DOMs.
domdbg
Package domdbg implements helpers to debug a DOM tree.
Package domdbg implements helpers to debug a DOM tree.
style
Package style provides functionality for CSS styling properties.
Package style provides functionality for CSS styling properties.
style/css
Package css provides functionality for CSS styling.
Package css provides functionality for CSS styling.
style/cssom
Package cssom provides functionality for CSS styling.
Package cssom provides functionality for CSS styling.
style/cssom/douceuradapter
Package douceuradapter is a concrete implementation of interface cssom.StyleSheet.
Package douceuradapter is a concrete implementation of interface cssom.StyleSheet.
styledtree
Package styledtree is a straightforward default implementation of a styled document tree.
Package styledtree is a straightforward default implementation of a styled document tree.
w3cdom
Package w3cdom defines an interface type for W3C Document Object Models.
Package w3cdom defines an interface type for W3C Document Object Models.
Immutable persistent data structures are data structures which can be copied and modified efficiently, leaving the original unchanged.
Immutable persistent data structures are data structures which can be copied and modified efficiently, leaving the original unchanged.
btree
Package btree implements an immutable persistent in-memory version of B-trees.
Package btree implements an immutable persistent in-memory version of B-trees.
tree
Package tree implements an all-purpose tree type.
Package tree implements an all-purpose tree type.
vector
Package vector implements an immutable persistent vector.
Package vector implements an immutable persistent vector.
Package tree implements an all-purpose tree type.
Package tree implements an all-purpose tree type.

Jump to

Keyboard shortcuts

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