cuelang.org/go@v0.13.0/cue/testdata/builtins/default.txtar (about) 1 -- in.cue -- 2 Len: len(*[1, 2, 3] | 0) 3 Close: close(*{} | 0) 4 And: and(*[1, 1] | int) 5 Or: or(*[1, 1] | int) 6 Div: div(*5 | string, 2) 7 Mod: mod(*5 | string, 2) 8 Quo: quo(*5 | string, 2) 9 Rem: rem(*5 | string, 2) 10 -- out/compile -- 11 --- in.cue 12 { 13 Len: len((*[ 14 1, 15 2, 16 3, 17 ]|0)) 18 Close: close((*{}|0)) 19 And: and((*[ 20 1, 21 1, 22 ]|int)) 23 Or: or((*[ 24 1, 25 1, 26 ]|int)) 27 Div: div((*5|string), 2) 28 Mod: mod((*5|string), 2) 29 Quo: quo((*5|string), 2) 30 Rem: rem((*5|string), 2) 31 } 32 -- out/eval/stats -- 33 Leaks: 0 34 Freed: 45 35 Reused: 40 36 Allocs: 5 37 Retain: 0 38 39 Unifications: 25 40 Conjuncts: 52 41 Disjuncts: 45 42 -- out/evalalpha -- 43 (struct){ 44 Len: (int){ 3 } 45 Close: (#struct){ 46 } 47 And: (int){ 1 } 48 Or: (int){ 1 } 49 Div: (int){ 2 } 50 Mod: (int){ 1 } 51 Quo: (int){ 2 } 52 Rem: (int){ 1 } 53 } 54 -- diff/-out/evalalpha<==>+out/eval -- 55 diff old new 56 --- old 57 +++ new 58 @@ -1,6 +1,6 @@ 59 (struct){ 60 Len: (int){ 3 } 61 - Close: (struct){ 62 + Close: (#struct){ 63 } 64 And: (int){ 1 } 65 Or: (int){ 1 } 66 -- out/eval -- 67 (struct){ 68 Len: (int){ 3 } 69 Close: (struct){ 70 } 71 And: (int){ 1 } 72 Or: (int){ 1 } 73 Div: (int){ 2 } 74 Mod: (int){ 1 } 75 Quo: (int){ 2 } 76 Rem: (int){ 1 } 77 }