Previous Up Next

6.3.5  First character, middle and end of a string: head mid tail

The head command finds the first character of a string.


Example.
Input:

head("Hello")

Output:

"H"


The mid command finds a selected part from the middle of a string.


Example.
Input:

mid("Hello",1,3)

Output:

"ell"


The tail command removes the first character of a string.

Input:

tail("Hello")

Output:

"ello"

Previous Up Next