Write a **function** that replicates the javascript function `slice`.
Write a **function** that replicates the JavaScript function `slice`.
The function receives a slice of strings and one or more integers, and returns a slice of strings. The returned slice is part of the received one but cut from the position indicated in the first int, until the position indicated by the second int.
@ -25,24 +25,28 @@ Here is a possible program to test your function :
```go
package main
import "fmt"
import (
"fmt"
piscine ".."
)
func main(){
a := []string{"coding", "algorithm", "ascii", "package", "golang"}