Browse Source

feat: add vowels-index

fixDevirged
zainabdnaya 2 years ago
parent
commit
4df40dfcf0
  1. 27
      subjects/vowels-index/README.md

27
subjects/vowels-index/README.md

@ -13,12 +13,27 @@ func VowelIdx(str string) []int {
```
### Usage
```go
package main
import "fmt"
func main() {
res := VowelIdx("hello Iyan")
for _, i := range res {
fmt.Println(i)
}
}
```
And its output :
```console
$ go run . "hello Iyan"
$2
$5
$7
$8
$9
$ go run .
$ 1
$ 4
$ 6
$ 8
```

Loading…
Cancel
Save