Replies: 3 comments 5 replies
-
Original reply by @grantzvolsky in cuelang/cue#457 (comment) I haven't found a solution to the more general problem of safely (without the risk of clashes from outer scopes) referencing fields within the current block/struct. The spec mentions neither |
Beta Was this translation helpful? Give feedback.
-
Original reply by @myitcv in cuelang/cue#457 (comment) Some related discussion in cuelang/cue#380 Moving the definition you want to iterate over to another package and embedding that package is one solution. But slightly depends what you are trying to do? |
Beta Was this translation helpful? Give feedback.
-
Original reply by @rudolph9 in cuelang/cue#457 (comment) You could use an alias:
|
Beta Was this translation helpful? Give feedback.
-
Originally opened by @shykes in cuelang/cue#457
Is there a way to iterate over top-level fields? For example:
Beta Was this translation helpful? Give feedback.
All reactions