12345678910111213141516171819202122232425262728293031323334353637 | '\" t
.\" Copyright (c) 2026 Bruce Hill
.\" All rights reserved.
.\"
.TH List.clear 3 2026-03-08 "Tomo man-pages"
.SH NAME
List.clear \- clear a list
.SH LIBRARY
Tomo Standard Library
.SH SYNOPSIS
.nf
.BI List.clear\ :\ func(list:\ @[T]\ ->\ Void)
.fi
.SH DESCRIPTION
Clears all elements from the list.
.SH ARGUMENTS
.TS
allbox;
lb lb lbx
l l l.
Name Type Description
list @[T] The mutable reference to the list to be cleared.
.TE
.SH RETURN
Nothing.
.SH EXAMPLES
.EX
list := &[10, 20]
list.clear()
assert list[] == []
.EE
.SH SEE ALSO
.BR Tomo-List (3)
|