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.8.0-0.dev
Published
Dec 6, 2023
Platform
linux/amd64
Last checked
2 hours ago

Tools for package owners.