![]() |
PING
0.9
Statistical data handling and processing in production environment
|
Compute the length of an unformatted (i.e., blank separated) list of strings.
list : a list of blank separated strings;sep : (option) character/string separator in input list; default: %quote( ), i.e. sep is blank.len : output length, i.e. the length of the considered list (calculated as the number of strings separated by sep).
returns len=6.
Run macro %_example_list_length for examples.
As kindly reported by P.BBES.Lamarche (pierre.lamarche@ec.europa.eu, a.k.a the "Base-Ball
Equation Solver") in his own well-tempered language, this macro is mostly useless as one can check that running list_length(&list, &sep) is essentially nothing else than:
Still, we enjoyed recoding it (and so did the GSAST guys, though it seemed "complex"). Further note that one could also use (in the case sep=%quote( )):