En/na Michael Van Canneyt ha escrit:


Of course it does exist. Split can be implemented like this:

List:=TStringList.Create;
List.Delimiter:=Delim;
List.StrictDelimiters:=True;
List.DelimitedText:=Str;


Never though of it. And join can be done too.
Pity that delimiter is a single character.
e.g., in python I can do

>>> l=('one','two','three')
>>> ', '.join(l)
'one, two, three'
>>> ', '.join(l).split(', ')
['one', 'two', 'three']



it's handy nevertheless.

Bye
--
Luca
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Reply via email to