(37 lines)
1 '\" t2 .\" Copyright (c) 2026 Bruce Hill3 .\" All rights reserved.4 .\"5 .TH List.clear 3 2026-03-08 "Tomo man-pages"6 .SH NAME7 List.clear \- clear a list8 .SH LIBRARY9 Tomo Standard Library10 .SH SYNOPSIS11 .nf12 .BI List.clear\ :\ func(list:\ @[T]\ ->\ Void)13 .fi14 .SH DESCRIPTION15 Clears all elements from the list.18 .SH ARGUMENTS20 .TS21 allbox;22 lb lb lbx23 l l l.24 Name Type Description25 list @[T] The mutable reference to the list to be cleared.26 .TE27 .SH RETURN28 Nothing.30 .SH EXAMPLES31 .EX32 list := &[10, 20]33 list.clear()34 assert list[] == []35 .EE36 .SH SEE ALSO37 .BR Tomo-List (3)