package lens
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
On This Page
Module LensSource
Functional lenses.
Based on F# implementation in FSharpx (see src/FSharpx.Core/Lens.fs for the original implementation)
Lens type definition
Combinators
Pairs three lenses
Selects a lens checking a predicate.
cond pred lensTrue lensFalse: pred is applied to source. If true, lensTrue is selected. If false, lensFalse is selected.
State monad integration
Modifies a value in the state monad.
Stock lenses
Lens for a particular key in a hashtable
Lens for a particular key in an associative list
Lens for extracting the value from an option type (same as Option.get)
List combinators
Creates a lens that maps the given lens in a list
Isomorphism
Applies an isomorphism to the value viewed through a lens
Infix operators for the state monad
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
On This Page