mirror of https://github.com/01-edu/public.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
339 B
24 lines
339 B
2 years ago
|
# VowlsIndex
|
||
|
|
||
|
### 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]
|
||
|
|
||
|
### Expected function
|
||
|
|
||
|
```go
|
||
|
func VowelIdx(str string) []int {
|
||
|
}
|
||
|
```
|
||
|
### Usage
|
||
|
|
||
|
```console
|
||
|
$ go run . "hello Iyan"
|
||
|
$2
|
||
|
$5
|
||
|
$7
|
||
|
$8
|
||
|
$9
|
||
|
```
|
||
|
|