ocean v6.2.0 (2021-12-09T10:56:40Z)
Home
Dub
Repo
CircularList.take
ocean
util
container
CircularList
CircularList
Time complexity: O(n)
Takes the last element on the list
class
CircularList
(V, alias Reap = Container.reap, alias Heap = Container.DefaultCollect)
final
bool
take
(
ref
V
v
)
Meta
Source
See Implementation
ocean
util
container
CircularList
CircularList
aliases
Type
constructors
this
destructors
~this
functions
add
addAt
append
cache
check
clear
contains
dup
first
get
head
isEmpty
iterator
last
opApply
prepend
remove
removeAt
removeHead
removeRange
removeTail
replace
replaceAt
reset
size
subset
tail
take
toArray
Time complexity: O(n)
Takes the last element on the list