Skip to content

Chadtech/unique-list

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

44 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

UniqueList

Create ordered lists with unique elements.

UniqueList is similar to Set, but with two major differences:

  • The underlying type of a UniqueList need not be comparable.
  • Elements can be ordered, like a regular list.

Notes

UniqueList works using equality checks internally. That means your code will break if you use a type that cannot be equated using ==. This includes functions and json (Json.Encode.Value and Json.Decode.Value).

Contributing

If you think this package could be improved, let me know by opening an issue or a pull request.