Skip to content

Add Map.fromListUnique #161

Description

@Dean177
val fromListUnique :
     ('key, 'identity) Comparator.s
  -> ('key * 'value) list
  -> (('key, 'value, 'identity) t, 'key) Result.t

This function should work similarly to fromList but will return an Ok if all of the keys are distinct and an Error containing the duplicated key if it is encountered.

Naming suggestions would be helpful.

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

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions