Home

StringSet

Set of string values

Operations

New

Default constructor

New()

Empty

Clears the set

method : public : native : Empty() ~ Nil

Filter

Uses the given function to filter out values

method : public : Filter(f:(String)~Bool) ~ StringSet
Parameters
NameTypeDescription
f(String)~Boolfunction to use a filter. If the function evaluates to true the value is added to the collection.

Return
TypeDescription
StringSetfilter vector

GetKeys

Get a collection of keys

method : public : GetKeys() ~ CompareVector
Return
TypeDescription
CompareVectorvector of keys

Has

Checks for key in set

method : public : Has(key:String) ~ Bool
Parameters
NameTypeDescription
keyStringsearch key

Return
TypeDescription
Booltrue if found, false otherwise

Insert

Inserts a key into the set

method : public : Insert(key:String) ~ Nil
Parameters
NameTypeDescription
keyStringkey

IsEmpty

Checks to see if the map is empty

method : public : native : IsEmpty() ~ Bool
Return
TypeDescription
Booltrue if empty, false otherwise

Remove

Removes a key from the set

method : public : Remove(key:String) ~ Bool
Parameters
NameTypeDescription
keyStringkey for value to remove

Return
TypeDescription
Booltrue if removed, false otherwise

Size

Size of map

method : public : native : Size() ~ Int
Return
TypeDescription
Intsize of queue