[SR-Users] {param.count,delimiter} issue

Daniel-Constantin Mierla miconda at gmail.com
Mon Aug 19 14:35:54 CEST 2019


On 19.08.19 14:30, Juha Heinanen wrote:
> One alternative could be to implement
>
> {s.count, delimiter}
>
> which would tell how many items a list separated by delimiter has.

That can be added, probably it would be just a generic {s.count,char} =>
return the number of appearances of char in the value.

Then for a param-like list with such delimiter it has to add 1. However,
for this specific case, to have a proper context parsing, in order to be
sure the params are well formatted, it should not be just a bare string
walk through.

Cheers,
Daniel

-- 
Daniel-Constantin Mierla -- www.asipto.com
www.twitter.com/miconda -- www.linkedin.com/in/miconda




More information about the sr-users mailing list