intslice

package
v0.23.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 28, 2019 License: MIT Imports: 1 Imported by: 3

Documentation

Overview

Package intslice provides a few helper functions for dealing with []int.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Contains

func Contains(list []int, a int) bool

Contains checks if an int is in a []int, returns bool.

func Max added in v0.18.2

func Max(list []int) int

Max for a non-empty int slice.

func Min added in v0.18.2

func Min(list []int) int

Min for a non-empty int slice.

func ToStringSlice

func ToStringSlice(in []int) []string

ToStringSlice transforms an []int to a []string.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL