Tyl Programming Language
▶ LISTS
Tyl list is an ordered collection of items.
List Variable Declaration
In Tyl programming, each variable has a name, for ex.: 'book'.
But if we want to declare a list of books, we would give it the name: 'books', with small-case letter 's' (referred as: 'plural ending'). The plural ending is mandatory for the system to recognize books as a list variable.

Here's books declaration:
books
If we want to assign some items to books list, we would write them right after the variable name.

Here's books list with three items:
books 'Tanamera' 'The Odyssey' 'Things Fall Apart'
Adding/Removing Items
To add an item, write:
books <- 'The Postman Always Rings Twice'
Tyl symbolizer will replace '<-' with '' (the 'list add' symbol):
books 'The Postman Always Rings Twice'
Regularly, items are added at the end of the list. To insert an item at a specific position, prepend the item with the position.

Inserting an item at the start of the list:
books 0 'The Postman Always Rings Twice'
In Tyl, items indexing is zero-based indexing, meaning item positions are: 0, 1, 2 ..., therefore the position at the start of the list will be: 0.

Removing the item at the start of the list:
books ->
Tyl symbol for removing is: '' (the 'list remove' symbol):
books
The first item of books, will be removed.

Removing an item from specific position:
books 2
To remove all the items of a list, we use the double arrow notation:
books ->->
In symbols:
books
books list will be cleared.
Accessing Items
To access the item at the start of the list:
books 0
To access an item with position variable:
position 0
books position
position 2
books position
Editing Items
To edit the item at specific position:
books 2 'The Postman Always Rings Twice'
The third item of books list will get the value: 'The Postman Always Rings Twice'.