Skip to content

Modern LinkedList Back

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

Home › LinkedList › LinkedList › Back

Back

Returns a reference to the back value without removing it.

Syntax

Back( ) byref as T

Examples

#import "std/containers"
using containers

dim q as LinkedList( of ustring )
q.PushBack( "a" ) : q.PushBack( "b" )

print q.Back( )          '' b
q.Back( ) = "z"          '' byref, so this assigns in place
print q.Back( )          '' z

'' An empty list yields a reference to a shared blank, not an error

Library: LinkedList
Category: LinkedList
Documented under: Members

Clone this wiki locally