Skip to content

Allow to unpack roots objects #180

@Kolaru

Description

@Kolaru

I think it would be nice to be able to unpack root objects as if they were tuples of (interval, status) e.g. have the following to work

julia> r = Root((1..2), :unique)
Root([1, 2], :unique)

julia> x, status = r

One interesting thing is that it would allow to iterate over the vector of Roots return by roots as follow

for (x, status) in roots(f, A)
    # do stuff
end

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions