Skip to content

jimmyfrasche/mapset

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mapset

Go Reference

go get github.com/jimmyfrasche/mapset

Package mapset implements set-like operations for maps. This generalizes the existing pattern of map[K]bool using a ContainsFunc predicate in place of a bool.

These operations treat maps as sets defined by their keys that happen to have some associated values that are taken along for the ride. When multiple values need to be considered for the same key a MergeFunc defines what value that key takes.

The Set and Bool types package these operations into types that can be used by conversion from a map[K]struct{} or map[K]bool, respectively.


Automatically generated by autoreadme

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages