Added join function
Signed-off-by: Nicolas Williams <nico@cryptonector.com>
This commit is contained in:
1 parent
6856ab8a69
commit
01f676041d
2 files changed
+15
No files matched your search
@@ -1075,6 +1075,20 @@ sections:
|
||||
input: '"a, b,c,d, e"'
|
||||
output: ['["a","b,c,d","e"]']
|
||||
|
||||
- title: `join`
|
||||
body: |
|
||||
|
||||
Joins the array of elements given as input, using the
|
||||
argument as separator. It is the inverse of `split`: that is,
|
||||
running `split("foo") | join("foo")` over any input string
|
||||
returns said input string.
|
||||
|
||||
examples:
|
||||
- program: 'join(", ")'
|
||||
input: '["a","b,c,d","e"]'
|
||||
output: ['"a, b,c,d, e"']
|
||||
|
||||
|
||||
- title: `recurse`
|
||||
body: |
|
||||
|
||||
|
||||
Reference in new issue
Block a user