set()
set<
T,V>(lensVal): (value) => (obj) =>T
A simple warpper function to access the set of a lens and the given object..
Type Parameters
T
T
The type of the object being inspected.
V
V
The type of the property value.
Parameters
lensVal
Lens<T, V>
The Lens to get the setter of.
Returns
(
value): (obj) =>T
Parameters
value
V
Returns
(
obj):T
Parameters
obj
T
Returns
T
Remarks
pure function
Example
set(nameLens)('Fred')(personStore);