The operations on texts HEAD and TAIL that are available in Elan-0 differ markedly from the standard operations in the language, being much more list-oriented. In standard Elan they can be programmed as
The following program repeatedly rotates its input text by one position until the original is obtained again.