package list
import "cuelang.org/go/pkg/list"
Package list contains functions for manipulating and examining lists.
Index ¶
- func Contains(a []cue.Value, v cue.Value) bool
- func MaxItems(a []cue.Value, n int) bool
- func MinItems(a []cue.Value, n int) bool
- func UniqueItems(a []cue.Value) bool
Functions ¶
func Contains ¶
Contains reports whether v is contained in a. The value must be a comparable value.
func MaxItems ¶
MaxItems reports whether a has at most n items.
func MinItems ¶
MinItems reports whether a has at least n items.
func UniqueItems ¶
UniqueItems reports whether all elements in the list are unique.
Source Files ¶
list.go
- Version
- v0.0.6
- Published
- Aug 25, 2019
- Platform
- linux/amd64
- Imports
- 3 packages
- Last checked
- 2 minutes ago –
Tools for package owners.