Skip to content

Modern LinkedList PushBack

Paul Squires edited this page Oct 19, 2026 · 5 revisions

Home › LinkedList › LinkedList › PushBack

PushBack

Adds a value at the back of the list.

Syntax

PushBack( byref v as T )

Notes

  • O(1)

Examples

#import "std/containers"
using containers

dim q as LinkedList( of ustring )

q.PushBack( "a" )
q.PushBack( "b" )        '' O(1) at the back, like Array.Push

print q.Back( )          '' b
print q.Count            '' 2

Library: LinkedList
Category: LinkedList
Documented under: Members

Clone this wiki locally