ocean ~master (2021-10-22T21:44:26.740458)
Dub
Repo
LinkedList.take
ocean
util
container
LinkedList
LinkedList
Takes the first value on the list
Time complexity: O(1)
class
LinkedList
(V, alias Reap = Container.reap, alias Heap = Container.DefaultCollect)
final
bool
take
(
ref
V
v
)
Meta
Source
See Implementation
ocean
util
container
LinkedList
LinkedList
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
sort
subset
tail
take
toArray
Takes the first value on the list
Time complexity: O(1)