Skip to content

Modern LinkedList Count

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

Home › LinkedList › LinkedList › Count

Count

Returns the number of values in the list.

Syntax

Count( ) as int32

Examples

#import "std/containers"
using containers

dim q as LinkedList( of int32 )
print q.Count            '' 0

for i as int32 = 1 to 3
    q.PushBack( i )
next
print q.Count            '' 3

q.PopFront( )
print q.Count            '' 2

Library: LinkedList
Category: LinkedList
Documented under: Members

Clone this wiki locally