Skip to content

feature request: hashset.insert(range!T inputs), i.e. add multiple elements in one call #163

@mw66

Description

@mw66

currently, hashset can only insert one element at a time:

bool insert(T value)

HashSet!string set;
set.insert("foo");
set.insert("bar");

Can we add another method, so we can insert multiple elements all at once? e.g.

set.insert(["foo", "bar", "foo"]);

Thanks.

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