Skip to content

Latest commit

 

History

3 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages