**General:**This frame introduces
you to simple indexing principals in * Glee*. These examples
correspond to the examples given for numeric vectors. This demonstrates another
characteristic of

**Simple Indexing:** From the
character string `'abcdef'` the elements (`7 6 5 4 3 2 1 0`) are
extracted in that order yielding (` fedcba `). I use the
`:hex` method for strings to show the result in hexadecimal form. For
strings, invalid indexes yield *spaces*. This is inconsistent with what we
did with numbers. With numbers we assumed the value at the index and
`nil` outside the range of valid indices. This had some rationale for
numerics but for characters, `space` makes mores sense.

**Insert Indexing:** When you
index with a fractional index, this tells * Glee* you want to insert
elements into the result. The integer indices you already understand from the
previous example. But decimal indices tell

**Indexing with index
generators:** We begin with the string (`'abcdefghi'=>a;`).
(`a[2..5] $;`) indexes the 2nd through 5th element using range.
(`a[4` +1] $;`) does the same using a calculated index. They both yield
the same (`bcde`).

**Indexed Assignment:** You can
use *Indexed assignment* to change the contents of variables. This example
shows three statements.

*Statement 1:* `('abcde'=>a;)` creates a variable `a`.

*Statement 2:*`('CD'=>[3 4]a;)` assigns the elements of the
string `'CD'`into the 3rd and 4th element of `a`.

*Statement 3:* (`a:hex $; `) then displays the resulting
"`a`" after the changes yielding (`abCDe`).

**Indexed Assignment:**
Here with (`'DCX'=>[4 3 9 2]a;`) we have the case of more indexes
than data. Again, as with numbers, ** Glee** does the

**Showing Explicit Left
Take:** This example produces the same result as the previous one. Only this
time we do the left take explicity (`'DCX'<-4 $` ) and display the
intermediate result with the `$` (`"DCX "`).

**Boolean indexing (or
selection):**In the numeric example, we created the boolean indexes using a
logical operation (e.g. `>`). Here I illustrate using
** Glee**'s special boolean notation in a character string. If the
string contains only 1's and 0's and is used as an index,

**Empty Index:** As with all
** Glee** objects, an empty index causes a copy of the object's
contents to be returned, in this case (