builtin

package module
v0.0.0-...-dcc8475 Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2023 License: Unlicense Imports: 0 Imported by: 1

README

builtin

Package builtin collects identifiers that should be predeclared in the Go programming language.

Documentation

Overview

Package builtin collects identifiers that should be predeclared in the Go programming language.

While Go's standard library and built-in identifiers typically do well in catering for the needs of the programmer, some identifiers that could assist the programmer in general programming cases do not exist in the standard Go distribution. Package builtin attempts to resolve this issue by providing a set of useful identifiers for general programming.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Contains

func Contains[T comparable](s []T, elem T) bool

Contains checks slice s for the existence of an element elem.

func HasOnly

func HasOnly[T comparable](s []T, elem T) bool

HasOnly checks if all elements of s are elem.

func Remove

func Remove[T comparable](s []T, elem T) []T

Remove attempts to remove element elem from slice s and return the resulting slice. If elem is not present in s, s is returned unchanged.

Types

This section is empty.

Jump to

Keyboard shortcuts

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