Go Sets: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
(Created page with "=Internal= * Go Maps =Overview=")
 
Line 3: Line 3:


=Overview=
=Overview=
A set can be implemented as a map with value type <code>bool</code>. Set the map entry to <code>true</code> to put the value in the set and then test it by simple indexing.

Revision as of 23:11, 28 August 2024

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.