Document string multiplication and division
This commit is contained in:
1 parent
c9e8581f45
commit
b634722c8a
1 file changed
+9
@@ -463,10 +463,19 @@ sections:
|
|||||||
|
|
||||||
These operators only work on numbers, and do the expected.
|
These operators only work on numbers, and do the expected.
|
||||||
|
|
||||||
|
Multiplying a string by a number produces the concatenation of
|
||||||
|
that string that many times.
|
||||||
|
|
||||||
|
Dividing a string by another splits the first using the second
|
||||||
|
as separators.
|
||||||
|
|
||||||
examples:
|
examples:
|
||||||
- program: '10 / . * 3'
|
- program: '10 / . * 3'
|
||||||
input: 5
|
input: 5
|
||||||
output: [6]
|
output: [6]
|
||||||
|
- program: '. / ", "'
|
||||||
|
input: '"a, b,c,d, e"'
|
||||||
|
output: ['["a","b,c,d","e"]']
|
||||||
|
|
||||||
- title: `length`
|
- title: `length`
|
||||||
body: |
|
body: |
|
||||||
|
|||||||
Reference in new issue
Block a user