ITEM

Synopsis
ITEM index thing
Description

If the input thing is a word, outputs the index-th character of the word.

If the input thing is a list, outputs the index-th member of the list.

If the input thing is an array, outputs the index-th element of the array.

An index starts at 1 for words and lists; the starting index of an array is specified when the array is created.

Example
SHOW ITEM 2 [a b c]
[b]
SHOW ITEM 3 "abc
c

SourceForge.net Logo