Home

FloatSet

Set of float values

Operations

New

Default constructor

New()

Empty

Clears the set

method : public : Empty() ~ Nil

Filter

Uses the given function to filter out values

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

Return
TypeDescription
FloatSetfilter vector

GetKeys

Get a collection of keys

method : public : native : GetKeys() ~ FloatVector
Return
TypeDescription
FloatVectorvector of keys

Has

Checks for key in set

method : public : Has(key:Float) ~ Bool
Parameters
NameTypeDescription
keyFloatsearch key

Return
TypeDescription
Booltrue if found, false otherwise

Insert

Inserts a key into the set

method : public : Insert(key:Float) ~ Nil
Parameters
NameTypeDescription
keyFloatkey

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:Float) ~ Bool
Parameters
NameTypeDescription
keyFloatkey 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