Skip to content

Non-idiomatic construction of lang-ext collections #1

@louthy

Description

@louthy

https://github.com/wdolek/benchmarkator/blob/master/src/Benchmarkator.Collections/Contains/ImmutableContainsFalse.cs#L48

Although this is totally a legitimate way to create the collections, this is more idiomatic:

    using static LanguageExt.Prelude;

   ...

    _langExtImmutableArray = Array(secondHalf);
    _langExtImmutableHashSet = HashSet(secondHalf);
    _langExtImmutableList = List(secondHalf);
    _langExtImmutableSet = Set(secondHalf);

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