19 Jan
2017
19 Jan
'17
2:14 p.m.
Hi, Am 19.01.2017 14:53, schrieb Richard Hodges:
and the start of an idea...
join(wrapped_sequence(range, "[", "]", ",", " ")) -- results in "[ a, b, c ]" or "[ ]" if the sequence is empty.
The last one would allow automatic generation of JSON...
I think, that is a great Idea. Maybe we'd prefer a more ranges like api here: join(separator(', '), range | wrapped("[", "]")); The ranges expression then of course returns a range of string factories. Just the first one and the last one do more than just pass through to the unterlying type. Christof