gocuelang.org/go/pkg/list Index | Files

package list

import "cuelang.org/go/pkg/list"

Package list contains functions for manipulating and examining lists.

Index

Functions

func Contains

func Contains(a []cue.Value, v cue.Value) bool

Contains reports whether v is contained in a. The value must be a comparable value.

func MaxItems

func MaxItems(a []cue.Value, n int) bool

MaxItems reports whether a has at most n items.

func MinItems

func MinItems(a []cue.Value, n int) bool

MinItems reports whether a has at least n items.

func UniqueItems

func UniqueItems(a []cue.Value) bool

UniqueItems reports whether all elements in the list are unique.

Source Files

list.go

Version
v0.0.5
Published
Aug 7, 2019
Platform
linux/amd64
Imports
3 packages
Last checked
2 minutes ago

Tools for package owners.