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.
estlop
6468a3614b
|
2 years ago | |
---|---|---|
.. | ||
README.md | 2 years ago |
README.md
oddlength
Instructions
Write a function that receives a slice of strings and returns a new slice with the strings in which the length is odd.
Expected function
func Oddlength(strings []string) []string {
}
Usage
Here is a possible program to test your function:
package main
import (
"piscine"
"fmt"
)
func main() {
l := piscine.Oddlength(["Hi", "Hola", "Ola", "Ciao", "Salut", "Hallo"])
fmt.Println(l)
}
And its output:
$ go run .
[Ola Salut Hallo]