Go Sets
Jump to navigation
Jump to search
Internal
Overview
A set can be implemented as a map with value type bool
. Set the map entry to true
to put the value in the set and then test it by simple indexing.
A set can be implemented as a map with value type bool
. Set the map entry to true
to put the value in the set and then test it by simple indexing.