![]() |
PING
0.9
Statistical data handling and processing in production environment
|
Create a simple list of replicated items with given length.
len : desired length of the output list;item : (option) item to replicate in the list; default: item=1, i.e. the list will be composed of 1 only;mark, sep : (option) characters/strings used respectively as a "quote" and a separator in the input list; default: mark=str(%"), and" sep=%quote(,), i.e. the input clist is a comma-separated list of quote-enhanced items; see %clist_unquote for further details.list : output list where item is replicated and concatenated len times.
Simple examples like:
return res1=("1","1","1","1","1") and res2=("a","a","a") respectively, while it is also possible:
returns res1=("1","2","3","1","2","3","1","2","3","1","2","3","1","2","3").
Run macro %_example_clist_ones for more examples.
The macro will not return exactly what you want if the symbol $ appears somewhere in the list. If you need to use $, you can reset the global macro variable G_PING_UNLIKELY_CHAR (see _setup_ file) to another dumb (unlikely) character of your own.