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.
 
 
 
 
 
estlop c496f96630 docs: Add readme for popint subject 2 years ago
..
README.md docs: Add readme for popint subject 2 years ago

README.md

popint

Instructions

Write a function that receives a slice of int and returns a new slice without the last element.

Expected function

func PopInt(ints []int) []int {

}

Usage

Here is a possible program to test your function:

package main

import (
    "piscine"
    "fmt"
)

func main() {
    ints := {6,7,8,9,}
    l := piscine.PopInt(ints)
    fmt.Println(l)
}

And its output:

$ go run .
[6 7 8]