github.com/solo-io/cue@v0.4.7/cue/testdata/definitions/list.txtar (about)

     1  -- in.cue --
     2  c: #R & {
     3      w: [{}, {b: int}]
     4  }
     5  #R: {
     6      w: [{}, ...]
     7  }
     8  -- out/eval --
     9  (struct){
    10    c: (#struct){
    11      w: (#list){
    12        0: (#struct){
    13        }
    14        1: (struct){
    15          b: (int){ int }
    16        }
    17      }
    18    }
    19    #R: (#struct){
    20      w: (list){
    21        0: (#struct){
    22        }
    23      }
    24    }
    25  }
    26  -- out/compile --
    27  --- in.cue
    28  {
    29    c: (〈0;#R〉 & {
    30      w: [
    31        {},
    32        {
    33          b: int
    34        },
    35      ]
    36    })
    37    #R: {
    38      w: [
    39        {},
    40        ...,
    41      ]
    42    }
    43  }