diff --git a/subjects/evenlength/README.md b/subjects/evenlength/README.md new file mode 100644 index 000000000..568b589eb --- /dev/null +++ b/subjects/evenlength/README.md @@ -0,0 +1,34 @@ +## evenlength + +### Instructions + +Write a function that receives a slice of strings and returns a new slice with the strings in which the length is even. + +### Expected function + +```go +func EvenLength(strings []string) []string { +} +``` + +### Usage + +Here is a possible program to test your function: + +```go +package main +import ( + "fmt" +) +func main() { + l := EvenLength([]string{"Hi", "Hola", "Ola", "Ciao", "Salut", "Hallo"}) + fmt.Println(l) +} +``` + +And its output: + +```console +$ go run . +[Hi Hola Ciao] +```