Replies: 1 comment 1 reply
-
Original reply by @verdverm in cuelang/cue#679 (comment) It is a little confusing to use the word "attribute" because Cue has a separate concept for attributes. Cue does not work with attributes directly (i.e. you cannot compute or unify with them) and they are only accessible via the Go API. Cue does this with https://cuelang.org/docs/references/spec/#attributes Maybe 'field' or 'field values' would be better? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Originally opened by @zloeber in cuelang/cue#679
It can be beneficial to be able to group a list of similar structs by a common field name. As shown below, Cuelang accomplish this quite easily.
See this in action --> https://cuelang.org/play/?id=u0BdnMvW_Cf#cue@export@cue
Beta Was this translation helpful? Give feedback.
All reactions