[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

4.1.7 Indexing into Lists and Strings

Both strings and lists can be seen as ordered sequences of MOO values. In the case of strings, each is a sequence of single-character strings; that is, one can view the string "bar" as a sequence of the strings "b", "a", and "r". MOO allows you to refer to the elements of lists and strings by number, by the index of that element in the list or string. The first element in a list or string has index 1, the second has index 2, and so on.

4.1.7.1 Extracting an Element from a List or String  
4.1.7.2 Replacing an Element of a List or String  
4.1.7.3 Extracting a Subsequence of a List or String  
4.1.7.4 Replacing a Subsequence of a List or String  



This document was generated on September, 30 2008 using texi2html