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.

36 lines
593 B

## byebyefirst
### Instructions
Write a function that takes a slice of strings and returns a new slice without the first element. If the slice is empty, return the empty slice.
### Expected function
```go
func ByeByeFirst(strings []string) []string {
}
```
### Usage
Here is a possible program to test your function :
```go
package main
func main() {
fmt.Println(ByeByeFirst([]string{}))
fmt.Println(ByeByeFirst([]string{"first", "second"}))
fmt.Println(ByeByeFirst([]string{"", "abcd", "efg"}))
}
```
And its output :
```console
$ go run . | cat -e
[]$
[second]$
[abcd efg]$
```