Files
Pierre-Marie de Rodat ae43d8bef1 Introduce a "join" builtin property for arrays of strings
While it is currently quite easy to implement such a property in the DSL
directly (.mapcat on a String.array), an upcoming commit will introduce
an opaque String type, making it much less convenient (replace a simple
.mapcat with a recursive property). Since this feature is generally
useful, just add a builtin property for it.

TN: UA05-027
2021-10-18 11:46:46 +02:00

13 lines
317 B
Plaintext

main.py: Running...
join([], '') = ''
join([], '|') = ''
join([''], '') = ''
join([''], '|') = ''
join(['a'], '') = 'a'
join(['a'], '|') = 'a'
join(['ab', 'cdef', '', 'g'], '') = 'abcdefg'
join(['ab', 'cdef', '', 'g'], '|') = 'ab|cdef||g'
join(['ab', 'cdef', '', 'g'], '<|>') = 'ab<|>cdef<|><|>g'
main.py: Done.
Done