package slices

import "cuelang.org/go/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.7.1
Published
Feb 12, 2024
Platform
linux/amd64
Last checked
2 hours ago

Tools for package owners.