Course of Raku / Advanced / More about built-in types / Strings / Searching in strings
Quiz — index
What does the following program print?
say 'Hello World'.index('o');| 1 | 4 |
| 0 | 7 |
| 0 | 5 |
| 0 | (4 7) |
Course of Raku / Advanced / More about built-in types / Strings / Searching in strings
indexWhat does the following program print?
say 'Hello World'.index('o');| 1 | 4 |
| 0 | 7 |
| 0 | 5 |
| 0 | (4 7) |