Skip to content

Add Map.fromListUnique #161

@Dean177

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions