Core Help Root: Objects: List Library: Other


.flatten(list)
Raise all the sublists to the toplevel.
.sum(list)
Returns the sum of the elements of the list.
.non_alphanumeric()
.numbers()
.alphabet()
Returns the lists of characters in each class.
.to_buffer([args])
Turns a list of strings into buffer, inserting a newlist (by default) as a separator.

Associative lists

Associative lists are lists of key/value pairs. Use them only when dealing with very few elements (fewer than 5, for instance). For larger databases, memory advantage of the associative lists ceases to matter, and they are much slower than dictionaries.

.addkey(l, key, val)
Adds a key/value pair to the list, or modifies the value associated with existing key.
.delkey(l, key)
Removes the key/value pair if exists.
.getkey(l, key)
Returns the value associated with the key, or throws ~keynf.
.getkey_index(l, key)
Returns the index if the key, or throws.


Element | Formatting | Maps | Sets | Other


the Cold Dark