List::clear

Remove all items from a list and return self.

Type

clear :: [a] -> [a]

Examples

l = [1, 2, 3].clear$()
println$(l)