Skip to content

Commit 93ef3ee

Browse files
committed
Add a comment about hasvalue/getvalue
1 parent 2535517 commit 93ef3ee

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/varnamedvector.jl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1187,6 +1187,9 @@ function values_as(vnv::VarNamedVector, ::Type{D}) where {D<:AbstractDict}
11871187
return ConstructionBase.constructorof(D)(pairs(vnv))
11881188
end
11891189

1190+
# See the docstring of `getvalue` for the semantics of `hasvalue` and `getvalue`, and how
1191+
# they differ from `haskey` and `getindex`. They can be found in src/utils.jl.
1192+
11901193
# TODO(mhauru) This is tricky to implement in the general case, and the below implementation
11911194
# only covers some simple cases. It's probably sufficient in most situations though.
11921195
function hasvalue(vnv::VarNamedVector, vn::VarName)

0 commit comments

Comments
 (0)