ImplicitTreapOfString extension type
- on
-
- ImplicitTreapBase<
String, StringNode>
- ImplicitTreapBase<
- Implemented types
-
- ImplicitTreapBase<
String, StringNode>
- ImplicitTreapBase<
Constructors
-
ImplicitTreapOfString.of(Iterable<
String> items)
Properties
-
base
→ ImplicitTreapBase<
String, StringNode> -
final
- first → String
-
Returns the first item in this treap.
no setterinherited
- firstOrDefault → String?
-
Returns the first item in this treap, or
null
if it is empty.no setterinherited - hashCode → int
-
The hash code for this object.
no setterinherited
- last → String
-
Returns the last item in this treap.
no setterinherited
- lastOrDefault → String?
-
Returns the last item in this treap, or
null
if it is empty.no setterinherited - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- size → int
-
The number of items in the treap.
no setterinherited
-
values
→ Iterable<
String> -
Iterate over the items in the treap.
no setterinherited
Methods
-
add(
String item) → ImplicitTreapOfString -
Adds
item
to the end of the treap.override -
append(
ImplicitTreapOfString other) → ImplicitTreapOfString -
Appends
other
to the end of this treap.override -
copy(
) → ImplicitTreapOfString -
Creates a copy of this treap.
override
-
insert(
int index, String item) → ImplicitTreapOfString -
Inserts
item
atindex
.override -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
remove(
int index) → ImplicitTreapOfString -
Removes the item at
index
.override -
skip(
int count) → ImplicitTreapOfString -
Skips the first
count
items and returns a new treap with the remaining items.override -
take(
int count) → ImplicitTreapOfString -
Returns a new treap with the first
count
items.override -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
-
operator [](
int index) → String -
Returns the item at
index
.inherited