Browse Source

docs: Add readme file for evenlength subject

DEV-3241-DEV-3242-corewar
estlop 2 years ago committed by Dav Hojt
parent
commit
b974a12074
  1. 35
      subjects/evenlength/README.md

35
subjects/evenlength/README.md

@ -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]
```
Loading…
Cancel
Save