Improve index and rindex examples
This commit is contained in:
1 parent
9af03c2562
commit
ef4f3a54fe
1 file changed
+5
-2
@@ -1005,9 +1005,12 @@ sections:
|
|||||||
occurrence of `s` in the input.
|
occurrence of `s` in the input.
|
||||||
|
|
||||||
examples:
|
examples:
|
||||||
- program: '[index(", "), rindex(", ")'
|
- program: 'index(", ")'
|
||||||
input: '"a,b, cd, efg, hijk"'
|
input: '"a,b, cd, efg, hijk"'
|
||||||
output: ['[3,12]']
|
output: ['3']
|
||||||
|
- program: 'rindex(", ")]'
|
||||||
|
input: '"a,b, cd, efg, hijk"'
|
||||||
|
output: ['12']
|
||||||
|
|
||||||
- title: `startswith`
|
- title: `startswith`
|
||||||
body: |
|
body: |
|
||||||
|
|||||||
Reference in new issue
Block a user