docs: Add readme file for evenlength subject

This commit is contained in:
estlop 2022-06-30 11:50:22 +01:00 committed by Dav Hojt
parent 402b138983
commit b974a12074
1 changed files with 35 additions and 0 deletions

View File

@ -0,0 +1,35 @@
## 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 (
"piscine"
"fmt"
)
func main() {
l := piscine.EvenLength(["Hi", "Hola", "Ola", "Ciao", "Salut", "Hallo"])
fmt.Println(l)
}
```
And its output:
```console
$ go run .
[Hi Hola Ciao]
```