Method in collections::list · List coil-stdlib

List::clear

pub fn clear()
Import
use collections::list::{List};
Source: src/collections/list.hy

Removes every value.

Called on a List value as value.clear(…).

Contracts#

Checked according to --contracts (see Contracts).

ensures self.len == 0

See also#

↑ ↓ navigate ↵ open