Set is implemented via maps in most programming languages.