CHARLIST()
Generates a list of all characters in a string
- Syntax
-
- CHARLIST ([<cString>]) -> cCharacterList
- Arguments
-
- [<cString>] is the string for whom the function generates a list of all characters Default: "" (empty string)
- Returns
-
- <cCharacterList> a list of the characters in <cString>
- Description
-
- The CHARLIST() function generates a list of those characters that are contained in <cString>. This list can contain each character only once, so that its maximum length is 256. The list lists those characters first that are occuring in <cString> first.
Examples
? charlist ("Hello World !") --> "Helo Wrd!"
Tests
charlist ("Hello World !") == "Helo Wrd!"
charlist (nil) == ""
- Status
- Ready
- Compliance
-
- CHARLIST() is compatible with CT3's CHARLIST().
- Platforms
-
- All
- Files
-
- Source is charlist.c, library is libct.
- See Also