github.com/solo-io/cue@v0.4.7/cue/testdata/lists/020_list_arithmetic.txtar (about)

     1  #name: list arithmetic
     2  #evalPartial
     3  -- in.cue --
     4  l0: 3 * [1, 2, 3]
     5  l1: 0 * [1, 2, 3]
     6  l2: 10 * []
     7  l6: 3 * [...int]
     8  l7: 3 * [1, ...int]
     9  l8: 3 * [1, 2, ...int]
    10  
    11  s0:  [] + []
    12  s1:  [1] + []
    13  s2:  [] + [2]
    14  s3:  [1] + [2]
    15  s4:  [1, 2] + []
    16  s5:  [] + [1, 2]
    17  s6:  [1] + [1, 2]
    18  s7:  [1, 2] + [1]
    19  s8:  [1, 2] + [1, 2]
    20  s9:  [] + [...]
    21  s10: [1] + [...]
    22  s11: [] + [2, ...]
    23  s12: [1] + [2, ...]
    24  s13: [1, 2] + [...]
    25  s14: [] + [1, 2, ...]
    26  s15: [1] + [1, 2, ...]
    27  s16: [1, 2] + [1, ...]
    28  s17: [1, 2] + [1, 2, ...]
    29  
    30  s18: [...] + []
    31  s19: [1, ...] + []
    32  s20: [...] + [2]
    33  s21: [1, ...] + [2]
    34  s22: [1, 2, ...] + []
    35  s23: [...] + [1, 2]
    36  s24: [1, ...] + [1, 2]
    37  s25: [1, 2, ...] + [1]
    38  s26: [1, 2, ...] + [1, 2]
    39  s27: [...] + [...]
    40  s28: [1, ...] + [...]
    41  s29: [...] + [2, ...]
    42  s30: [1, ...] + [2, ...]
    43  s31: [1, 2, ...] + [...]
    44  s32: [...] + [1, 2, ...]
    45  s33: [1, ...] + [1, 2, ...]
    46  s34: [1, 2, ...] + [1, ...]
    47  s35: [1, 2, ...] + [1, 2, ...]
    48  -- out/def --
    49  l0: [1, 2, 3, 1, 2, 3, 1, 2, 3]
    50  l1: []
    51  l2: []
    52  l3: <=2 * []
    53  l4: <=2 * [int]
    54  l5: <=2 * (int * [int])
    55  l6: []
    56  l7: [1, 1, 1]
    57  l8: [1, 2, 1, 2, 1, 2]
    58  s0: []
    59  s1: [1]
    60  s2: [2]
    61  s3: [1, 2]
    62  s4: [1, 2]
    63  s5: [1, 2]
    64  s6: [1, 1, 2]
    65  s7: [1, 2, 1]
    66  s8: [1, 2, 1, 2]
    67  s9: []
    68  s10: [1]
    69  s11: [2]
    70  s12: [1, 2]
    71  s13: [1, 2]
    72  s14: [1, 2]
    73  s15: [1, 1, 2]
    74  s16: [1, 2, 1]
    75  s17: [1, 2, 1, 2]
    76  s18: []
    77  s19: [1]
    78  s20: [2]
    79  s21: [1, 2]
    80  s22: [1, 2]
    81  s23: [1, 2]
    82  s24: [1, 1, 2]
    83  s25: [1, 2, 1]
    84  s26: [1, 2, 1, 2]
    85  s27: []
    86  s28: [1]
    87  s29: [2]
    88  s30: [1, 2]
    89  s31: [1, 2]
    90  s32: [1, 2]
    91  s33: [1, 1, 2]
    92  s34: [1, 2, 1]
    93  s35: [1, 2, 1, 2]
    94  -- out/legacy-debug --
    95  <0>{l0: [1,2,3,1,2,3,1,2,3], l1: [], l2: [], l3: (<=2 * []), l4: (<=2 * [int]), l5: (<=2 * (int * [int])), l6: [], l7: [1,1,1], l8: [1,2,1,2,1,2], s0: [], s1: [1], s2: [2], s3: [1,2], s4: [1,2], s5: [1,2], s6: [1,1,2], s7: [1,2,1], s8: [1,2,1,2], s9: [], s10: [1], s11: [2], s12: [1,2], s13: [1,2], s14: [1,2], s15: [1,1,2], s16: [1,2,1], s17: [1,2,1,2], s18: [], s19: [1], s20: [2], s21: [1,2], s22: [1,2], s23: [1,2], s24: [1,1,2], s25: [1,2,1], s26: [1,2,1,2], s27: [], s28: [1], s29: [2], s30: [1,2], s31: [1,2], s32: [1,2], s33: [1,1,2], s34: [1,2,1], s35: [1,2,1,2]}
    96  -- out/compile --
    97  --- in.cue
    98  {
    99    l0: (3 * [
   100      1,
   101      2,
   102      3,
   103    ])
   104    l1: (0 * [
   105      1,
   106      2,
   107      3,
   108    ])
   109    l2: (10 * [])
   110    l6: (3 * [
   111      ...int,
   112    ])
   113    l7: (3 * [
   114      1,
   115      ...int,
   116    ])
   117    l8: (3 * [
   118      1,
   119      2,
   120      ...int,
   121    ])
   122    s0: ([] + [])
   123    s1: ([
   124      1,
   125    ] + [])
   126    s2: ([] + [
   127      2,
   128    ])
   129    s3: ([
   130      1,
   131    ] + [
   132      2,
   133    ])
   134    s4: ([
   135      1,
   136      2,
   137    ] + [])
   138    s5: ([] + [
   139      1,
   140      2,
   141    ])
   142    s6: ([
   143      1,
   144    ] + [
   145      1,
   146      2,
   147    ])
   148    s7: ([
   149      1,
   150      2,
   151    ] + [
   152      1,
   153    ])
   154    s8: ([
   155      1,
   156      2,
   157    ] + [
   158      1,
   159      2,
   160    ])
   161    s9: ([] + [
   162      ...,
   163    ])
   164    s10: ([
   165      1,
   166    ] + [
   167      ...,
   168    ])
   169    s11: ([] + [
   170      2,
   171      ...,
   172    ])
   173    s12: ([
   174      1,
   175    ] + [
   176      2,
   177      ...,
   178    ])
   179    s13: ([
   180      1,
   181      2,
   182    ] + [
   183      ...,
   184    ])
   185    s14: ([] + [
   186      1,
   187      2,
   188      ...,
   189    ])
   190    s15: ([
   191      1,
   192    ] + [
   193      1,
   194      2,
   195      ...,
   196    ])
   197    s16: ([
   198      1,
   199      2,
   200    ] + [
   201      1,
   202      ...,
   203    ])
   204    s17: ([
   205      1,
   206      2,
   207    ] + [
   208      1,
   209      2,
   210      ...,
   211    ])
   212    s18: ([
   213      ...,
   214    ] + [])
   215    s19: ([
   216      1,
   217      ...,
   218    ] + [])
   219    s20: ([
   220      ...,
   221    ] + [
   222      2,
   223    ])
   224    s21: ([
   225      1,
   226      ...,
   227    ] + [
   228      2,
   229    ])
   230    s22: ([
   231      1,
   232      2,
   233      ...,
   234    ] + [])
   235    s23: ([
   236      ...,
   237    ] + [
   238      1,
   239      2,
   240    ])
   241    s24: ([
   242      1,
   243      ...,
   244    ] + [
   245      1,
   246      2,
   247    ])
   248    s25: ([
   249      1,
   250      2,
   251      ...,
   252    ] + [
   253      1,
   254    ])
   255    s26: ([
   256      1,
   257      2,
   258      ...,
   259    ] + [
   260      1,
   261      2,
   262    ])
   263    s27: ([
   264      ...,
   265    ] + [
   266      ...,
   267    ])
   268    s28: ([
   269      1,
   270      ...,
   271    ] + [
   272      ...,
   273    ])
   274    s29: ([
   275      ...,
   276    ] + [
   277      2,
   278      ...,
   279    ])
   280    s30: ([
   281      1,
   282      ...,
   283    ] + [
   284      2,
   285      ...,
   286    ])
   287    s31: ([
   288      1,
   289      2,
   290      ...,
   291    ] + [
   292      ...,
   293    ])
   294    s32: ([
   295      ...,
   296    ] + [
   297      1,
   298      2,
   299      ...,
   300    ])
   301    s33: ([
   302      1,
   303      ...,
   304    ] + [
   305      1,
   306      2,
   307      ...,
   308    ])
   309    s34: ([
   310      1,
   311      2,
   312      ...,
   313    ] + [
   314      1,
   315      ...,
   316    ])
   317    s35: ([
   318      1,
   319      2,
   320      ...,
   321    ] + [
   322      1,
   323      2,
   324      ...,
   325    ])
   326  }
   327  -- out/eval --
   328  (struct){
   329    l0: (#list){
   330      0: (int){ 1 }
   331      1: (int){ 2 }
   332      2: (int){ 3 }
   333      3: (int){ 1 }
   334      4: (int){ 2 }
   335      5: (int){ 3 }
   336      6: (int){ 1 }
   337      7: (int){ 2 }
   338      8: (int){ 3 }
   339    }
   340    l1: (#list){
   341    }
   342    l2: (#list){
   343    }
   344    l6: (#list){
   345    }
   346    l7: (#list){
   347      0: (int){ 1 }
   348      1: (int){ 1 }
   349      2: (int){ 1 }
   350    }
   351    l8: (#list){
   352      0: (int){ 1 }
   353      1: (int){ 2 }
   354      2: (int){ 1 }
   355      3: (int){ 2 }
   356      4: (int){ 1 }
   357      5: (int){ 2 }
   358    }
   359    s0: (#list){
   360    }
   361    s1: (#list){
   362      0: (int){ 1 }
   363    }
   364    s2: (#list){
   365      0: (int){ 2 }
   366    }
   367    s3: (#list){
   368      0: (int){ 1 }
   369      1: (int){ 2 }
   370    }
   371    s4: (#list){
   372      0: (int){ 1 }
   373      1: (int){ 2 }
   374    }
   375    s5: (#list){
   376      0: (int){ 1 }
   377      1: (int){ 2 }
   378    }
   379    s6: (#list){
   380      0: (int){ 1 }
   381      1: (int){ 1 }
   382      2: (int){ 2 }
   383    }
   384    s7: (#list){
   385      0: (int){ 1 }
   386      1: (int){ 2 }
   387      2: (int){ 1 }
   388    }
   389    s8: (#list){
   390      0: (int){ 1 }
   391      1: (int){ 2 }
   392      2: (int){ 1 }
   393      3: (int){ 2 }
   394    }
   395    s9: (#list){
   396    }
   397    s10: (#list){
   398      0: (int){ 1 }
   399    }
   400    s11: (#list){
   401      0: (int){ 2 }
   402    }
   403    s12: (#list){
   404      0: (int){ 1 }
   405      1: (int){ 2 }
   406    }
   407    s13: (#list){
   408      0: (int){ 1 }
   409      1: (int){ 2 }
   410    }
   411    s14: (#list){
   412      0: (int){ 1 }
   413      1: (int){ 2 }
   414    }
   415    s15: (#list){
   416      0: (int){ 1 }
   417      1: (int){ 1 }
   418      2: (int){ 2 }
   419    }
   420    s16: (#list){
   421      0: (int){ 1 }
   422      1: (int){ 2 }
   423      2: (int){ 1 }
   424    }
   425    s17: (#list){
   426      0: (int){ 1 }
   427      1: (int){ 2 }
   428      2: (int){ 1 }
   429      3: (int){ 2 }
   430    }
   431    s18: (#list){
   432    }
   433    s19: (#list){
   434      0: (int){ 1 }
   435    }
   436    s20: (#list){
   437      0: (int){ 2 }
   438    }
   439    s21: (#list){
   440      0: (int){ 1 }
   441      1: (int){ 2 }
   442    }
   443    s22: (#list){
   444      0: (int){ 1 }
   445      1: (int){ 2 }
   446    }
   447    s23: (#list){
   448      0: (int){ 1 }
   449      1: (int){ 2 }
   450    }
   451    s24: (#list){
   452      0: (int){ 1 }
   453      1: (int){ 1 }
   454      2: (int){ 2 }
   455    }
   456    s25: (#list){
   457      0: (int){ 1 }
   458      1: (int){ 2 }
   459      2: (int){ 1 }
   460    }
   461    s26: (#list){
   462      0: (int){ 1 }
   463      1: (int){ 2 }
   464      2: (int){ 1 }
   465      3: (int){ 2 }
   466    }
   467    s27: (#list){
   468    }
   469    s28: (#list){
   470      0: (int){ 1 }
   471    }
   472    s29: (#list){
   473      0: (int){ 2 }
   474    }
   475    s30: (#list){
   476      0: (int){ 1 }
   477      1: (int){ 2 }
   478    }
   479    s31: (#list){
   480      0: (int){ 1 }
   481      1: (int){ 2 }
   482    }
   483    s32: (#list){
   484      0: (int){ 1 }
   485      1: (int){ 2 }
   486    }
   487    s33: (#list){
   488      0: (int){ 1 }
   489      1: (int){ 1 }
   490      2: (int){ 2 }
   491    }
   492    s34: (#list){
   493      0: (int){ 1 }
   494      1: (int){ 2 }
   495      2: (int){ 1 }
   496    }
   497    s35: (#list){
   498      0: (int){ 1 }
   499      1: (int){ 2 }
   500      2: (int){ 1 }
   501      3: (int){ 2 }
   502    }
   503  }