Primitive Data Types Tutorial
Functions strSplit and strJoin
Function strSplit(s,p) : (String * String -> List[String])
returns the list of all sub strings
of the string s which are delimited by sub strings p.
Function strJoin(l,p) : (List[String] * String -> String)
concatenates elements of the list l.
The delimiter p is inserted between list elements.
Source code:
{#
strSplit( 'a,bb,c,dd,e', ','),
strJoin( strSplit( 'a,bb,c,dd,e', ','), ';' )
#}
Result:
{# ["a","bb","c","dd","e"], "a;bb;c;dd;e" #}
|