Skip to content

List of one or more elements? #835

Answered by cueckoo
cueckoo asked this question in Q&A
Discussion options

You must be logged in to vote

Original reply by @eonpatapon in cuelang/cue#835 (comment)

For minimum items in a list you can also express it like this:

l: [string, string, ...string]

Where l should be a list of at least 2 string values.

Replies: 2 comments

Comment options

cueckoo
Jul 3, 2021
Collaborator Author

You must be logged in to vote
0 replies
Comment options

cueckoo
Jul 3, 2021
Collaborator Author

You must be logged in to vote
0 replies
Answer selected by cueckoo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant