Formula List Functions

Back to Index

Overview

Lists are useful components in any scripting environment, Tap is no different. There are two list functions that work together: list and list-item.

List stores a series of values and list-item retrieves a value at a specific index.

Reference

LIST

(list x y ...)

Stores a series of values in order

Example:

$$()(list "ro" "cham" "beau")

LIST-ITEM

(list-item list index)

Retrieves a specific item from a list by index. Index starts at 0, last index is: number-of-list-items minus 1.

Example:

$$()(list-item (list "ro" "cham" "bo") 0)