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

Checking the initial characters of a string in Icon

Tech Computer Center logo

The Icon function ``many(c, s)'' is used to find out how many of the initial characters of s are in the cset c.

For example, this expression

    many ( &letters, "12345" )
fails, while this expression
    many ( &letters, "abc123" )
returns 4, the position in the string just after its initial letters.
Next: Checking for an initial substring in Icon
See also: Using strings in Icon
Previous: Checking the first character of a string in Icon
Site map
Index: Keyword index to help pages
Help: New Mexico Tech Computer Center: Help System
TCC Publications
Home: About New Mexico Tech

John Shipman, john@nmt.edu

Last updated: 1996/01/06 21:12:57 UT
URL: http://www.nmt.edu/tcc/help/lang/icon/many.html