From 813036aabdb5b2f48e7e4d206486233671f8c68a Mon Sep 17 00:00:00 2001 From: estlop Date: Fri, 1 Jul 2022 11:26:05 +0100 Subject: [PATCH] docs: Remove piscine from imports --- subjects/evenlength/README.md | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 subjects/evenlength/README.md 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] +```