|
|
|
@ -1,9 +1,9 @@
|
|
|
|
|
# vowels-index |
|
|
|
|
## vowels-index |
|
|
|
|
|
|
|
|
|
### Instructions |
|
|
|
|
|
|
|
|
|
- Write a function that takes one argument of type string and returns an array of intergers containing the index of the vowels in the string. |
|
|
|
|
- vowels : [a,i ,e ,u o] |
|
|
|
|
Write a function that takes one argument of type string and returns an array of integers containing the index of the vowels in the string. |
|
|
|
|
- vowels: a, e, i, o, u] |
|
|
|
|
|
|
|
|
|
### Expected function |
|
|
|
|
|
|
|
|
@ -13,6 +13,7 @@ func VowelsIndex(str string) []int {
|
|
|
|
|
``` |
|
|
|
|
### Usage |
|
|
|
|
|
|
|
|
|
Here is a possible program to test your function |
|
|
|
|
```go |
|
|
|
|
package main |
|
|
|
|
|
|
|
|
@ -30,7 +31,6 @@ func main() {
|
|
|
|
|
``` |
|
|
|
|
And its output : |
|
|
|
|
```console |
|
|
|
|
|
|
|
|
|
$ go run . | cat -e |
|
|
|
|
1$ |
|
|
|
|
4$ |
|
|
|
|