Skip to content

Non-idiomatic construction of lang-ext collections #1

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);

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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