Home

FloatMap

Binary tree of float values

Operations

New

Default constructor

New()

Empty

Clears the map

method : public : Empty() ~ Nil

Filter

Uses the given function to filter out values

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

Return
TypeDescription
FloatMapfilter vector

Find

Searches for a value in a map

method : public : Find(key:Float) ~ Base
Parameters
NameTypeDescription
keyFloatsearch key

Return
TypeDescription
Basefound value, Nil otherwise

GetKeys

Get a collection of keys

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

GetMap

Gets the backing Compare map

method : public : GetMap() ~ Map
Return
TypeDescription
Mapbacking Compare map

GetValues

Gets a collection of values

method : public : GetValues() ~ Vector
Return
TypeDescription
Vectorvector of values

Has

Check of the given pair is in the map

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

Return
TypeDescription
Booltrue if found

Insert

Inserts a value into the map

method : public : Insert(key:Float, value:Base) ~ Nil
Parameters
NameTypeDescription
keyFloatkey
valueBasevalue

IsEmpty

Checks to see if the map is empty

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

Remove

Removes a value from the map

method : public : Remove(key:Float) ~ Bool
Parameters
NameTypeDescription
keyFloatkey for value to remove

Return
TypeDescription
Booltrue if removed, false otherwise

Size

Size of queue

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