We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 2e1b708 + 37edf7c commit c698369Copy full SHA for c698369
src/optics.jl
@@ -14,7 +14,8 @@ const EXPERIMENTAL = """This function/method/type is experimental. It can be cha
14
"""
15
modify(f, obj, optic)
16
17
-Replace a deeply nested part `x` of `obj` by `f(x)`.
+Replace a part `x` of `obj` by `f(x)`. The `optic` argument selects
18
+which part to replace.
19
20
```jldoctest
21
julia> using Accessors
@@ -29,9 +30,9 @@ See also [`set`](@ref).
29
30
function modify end
31
32
- set(optic, obj, val)
33
+ set(obj, optic, val)
34
-Replace a deeply nested part of `obj` by `val`.
35
+Replace a part according to `optic` of `obj` by `val`.
36
37
38
0 commit comments