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
The type of the object being inspected.
• V
The type of the property value.
Parameters
lensVal
Lens
<T
, V
>
The Lens to get the setter of.
Returns
Function
Parameters
value
V
Returns
Function
Parameters
obj
T
Returns
T
Remarks
pure function
Example
set(nameLens)('Fred')(personStore);