For complicated operations on the positions in the chains, and in which it is very easy to make a mistake, ICON makes the task easier by automatically managing the positions of each chain.
Where s is the string to be examined and "expr" is an expression that is responsible for carrying out the exploration. The scan starts at position 1.
The function "move (i)" moves through the chain to the position 'i' and produces in the output the substring contained between the previous positions and that position. If this substring could not be produced because the original string is not long enough, the function fails.
Icon is a very high-level programming language, especially recommended for working with text strings, since it allows fast and concise programming. It can be used for text analysis and formatting, artificial intelligence or prototype programming. The latest versions also include GUI graphics and facilities. It was designed in the 1970s by Ralph E. Griswold, and other collaborators at the "Department of Computer Science" at the University of Arizona. Griswold, who was leading the project, already had previous experience in the design of high-level languages, since he was one of the creators of Snobol, from which they took some characteristics