package
0.0.0-20241126162219-e91a9a7b5d33
Repository: https://github.com/rogpeppe/rog-go.git
Documentation: pkg.go.dev

# Functions

Float64Multiply returns a Lens that multiplies by x.
Float64ToInt returns a Lens that transforms a float64 value to the nearest int.
Float64ToString returns a Lens which transforms from float64 to string.
NewConst returns a Value of type t which always returns the value v, and gives an error when set.
NewLens creates a new Lens instance that transforms values from type T to type T1.
NewReflectiveLens creates a Lens from two dynamically typed functions.
NewValue creates a new Value with the given initial value and type.
Sender sends values from v down the channel c, which must be of type T where T is v.Type().
Transform returns a Value, v1, that mirrors an existing Value, v, by running m.Transform(x) on each value received from v.Iter(), and m.Reverse.Transform(x) on each value passed to v.Set().
UnitFloat64ToRangedFloat64 returns a Lens that peforms a linear transformation from a float64 value in [0, 1] to a float64 value in [lo, hi].

# Structs

A Lens can transform from values of type T to values of type T1.

# Interfaces

No description provided by the author
A Value represents a changing value of a given type.