cmpx

package
v1.58.2 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2024 License: BSD-3-Clause Imports: 0 Imported by: 0

Documentation

Overview

Package cmpx has code that will likely land in a future version of Go, but we want sooner.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Or

func Or[T comparable](list ...T) T

Or returns the first non-zero element of list, or else returns the zero T.

This is the proposal from https://github.com/golang/go/issues/60204#issuecomment-1581245334.

Types

This section is empty.

Jump to

Keyboard shortcuts

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