Next / Previous / Index / ITC Help System / Publications / Site map / NM Tech homepage

Implicit matching in Icon

Tech Computer Center logo

Once a string e1 has been established as the implicit scanning subject (&subject) within expression e2 by use of the construct ``e1 ? e2'', several string functions implicitly refer to the ``current subject,'' meaning the characters of ``&subject'' starting at position ``&pos.''

For example, this expression

    "syzygy" ? every write ( find ( "y" ) );
writes three lines with the values 2, 4, and 6, because the string "syzygy" is established as the ``&subject'' within the expression after the ``?'' and because the ``find()'' function uses the subject as its implicit second argument.
Next: Using the tab function for parsing in Icon
See also: Implicit scanning in Icon
Previous: Setting the scanning subject in Icon
Site map
Index: Keyword index to help pages
Help: New Mexico Tech Information Technology and Communications: Help System
ITC Publications
To report a problem: File a ticket
Send mail to the User consultant on duty or call them at 575-835-5437
Home: About New Mexico Tech

John Shipman,
Last updated: 1996/10/29 23:58:27 UT
QR two-dimensional bar code