package slices

import "cuelang.org/go/cue/load/internal/slices"

Index

Functions

func Clip

func Clip[S ~[]E, E any](s S) S

Clip removes unused capacity from the slice, returning s[:len(s):len(s)].

Source Files

slices.go

Version
v0.6.0-rc.1
Published
Aug 1, 2023
Platform
js/wasm
Last checked
21 minutes ago

Tools for package owners.