| OrderedSet | R Documentation |
The OrderedSet is a Set where all elements are always ordered.
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::Iterable -> container::Container -> container::Set -> OrderedSet
container::Iterable$iter()container::Container$at()container::Container$at2()container::Container$clear()container::Container$count()container::Container$delete()container::Container$delete_at()container::Container$discard()container::Container$discard_at()container::Container$empty()container::Container$get_compare_fun()container::Container$has()container::Container$has_name()container::Container$is_empty()container::Container$length()container::Container$names()container::Container$peek_at()container::Container$peek_at2()container::Container$pop()container::Container$print()container::Container$remove()container::Container$rename()container::Container$replace()container::Container$replace_at()container::Container$size()container::Container$type()container::Container$update()container::Set$diff()container::Set$intersect()container::Set$is_equal()container::Set$is_proper_subset()container::Set$is_subset()container::Set$union()container::Set$values()new()OrderedSet constructor
OrderedSet$new(...)
...initial elements put into the OrderedSet
returns the OrderedSet object
add()Add element
OrderedSet$add(value, name = NULL)
valuevalue of ANY type to be added to the OrderedSet.
namecharacter optional name attribute of the value.
the OrderedSet object.
clone()The objects of this class are cloneable with this method.
OrderedSet$clone(deep = FALSE)
deepWhether to make a deep clone.
Container, Set
s1 = OrderedSet$new(2, 1)
s1
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.