Tokenize a string: Difference between revisions
Content added Content deleted
m (→Version #1.) |
m (→Version #2.: adding comment) |
||
Line 1,472: | Line 1,472: | ||
<lang parigp> |
<lang parigp> |
||
\\Tokenize a string str according to 1 character delimiter d. Return a list of tokens. |
\\ Tokenize a string str according to 1 character delimiter d. Return a list of tokens. |
||
\\ Using ssubstr() from http://rosettacode.org/wiki/Substring#PARI.2FGP |
|||
\\ stok() 3/5/16 aev |
\\ stok() 3/5/16 aev |
||
stok(str,d)={ |
stok(str,d)={ |