Skip to content

direct filter! api for FileTree? #43

@Moelf

Description

@Moelf

IMHO it's an anti-pattern to do:

tree[r"regex"]

and currently, you will need to do something close to:

tree = filter(x->!contains(x.name,r"\$|%"), tree);

we should probably allow filter!(pred, tree) to work directly?

(if not not to directly apply predicate on tree.children is a debatable question)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions