Skip to content
Flint
Dokumentation

list

typePaperVelocity

An ordered list of values.

Egenskaber 3

list.size: number
skrivebeskyttet

Number of items.

list.first: any
skrivebeskyttet

First item, or none.

list.last: any
skrivebeskyttet

Last item, or none.

Metoder 12

Appends a value.

Inserts a value at an index.

Removes the first matching value. Returns true if found.

Removes and returns the item at an index.

Removes and returns the last item, or none.

True if the list has the value.

Index of the value, or -1.

Removes everything.

Joins the items into text.

Sorts the list in place and returns it.

Reverses the list in place and returns it.

A new list with the same items.