The OrderedSet is a Set where all elements are always ordered.
container::Iterable
-> container::Container
-> container::Set
-> OrderedSet
Inherited methods
new()
OrderedSet
constructor
OrderedSet$new(...)
...
initial elements put into the OrderedSet
returns the OrderedSet
object
add()
Add element
OrderedSet$add(value, name = NULL)
value
value of ANY
type to be added to the OrderedSet
.
name
character
optional name attribute of the value.
the OrderedSet
object.
clone()
The objects of this class are cloneable with this method.
OrderedSet$clone(deep = FALSE)
deep
Whether to make a deep clone.
The order of elements is determined sequentially as follows:
element's length
whether it is an atomic element
the element's class(es)
by numeric value (if applicable)
it's representation when printed
the name of the element in the Set
Container, Set