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.
1 parent 049001e commit e0adba7Copy full SHA for e0adba7
ext/AbstractPPLDistributionsExt.jl
@@ -32,11 +32,7 @@ function AbstractPPL.hasvalue(
32
# can return true.
33
sz = size(dist)
34
for idx in Iterators.product(map(Base.OneTo, sz)...)
35
- new_optic = if AbstractPPL.getoptic(vn) === identity
36
- Accessors.IndexLens(idx)
37
- else
38
- Accessors.IndexLens(idx) ∘ AbstractPPL.getoptic(vn)
39
- end
+ new_optic = Accessors.IndexLens(idx) ∘ AbstractPPL.getoptic(vn)
40
new_vn = VarName{sym}(new_optic)
41
AbstractPPL.hasvalue(vals, new_vn) || return false
42
end
0 commit comments