package
Version:
v0.12.0
Opens a new window with list of versions in this module.
Published: Dec 27, 2022
License: Apache-2.0
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
func CutUsed[T any](x []T) (used, unused []T)
CutUsed cuts x at len(x).
When cap(x) is not 0, it returns x[:len(x):len(x)] as used and
x[len(x):len(x):cap(x)] as unused.
When cap(x) is 0, it returns x and nil as used and unused.
func New[T any](base []T, add ...T) []T
Source Files
¶
Click to show internal directories.
Click to hide internal directories.