You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
function Base.filter(f::Function, vec::MembersVector)
MembersVector(vec.elements, Base.filter(e ->f(vec.elements[e[1]]), vec.records))
end
to
function Base.filter(f::Function, vec::MembersVector)
MembersVector(vec.elements, Base.filter(e ->f(Pair(e[1],vec.elements[e[1]])), vec.records))
end
where e[1] is the Id and vec.elements[e[1]] is the Variable itself.
But the thing get uglier and we will have to check if it allocates memory to do Pair(e[1],vec.elements[e[1]])
To avoid the need of both filters that take a tuple and the own object.
Currently it returns a VarDict
The text was updated successfully, but these errors were encountered: