return tokens of string
split/2 "tokens" return substrings of "string" seperated by white space.
split/3 "tokens" return substrings of "string" seperated by "regexp".
regexp atom string atom tokens list
split('one two three', L) => L = [one,two,three]
split('%s*:%s*', 'one : two :three', L)
=> L = [one,two,three]
This predicate is not part of the ISO-Prolog Standard.
| scroll to top |
|