...

Text file src/cuelang.org/go/cue/testdata/builtins/or.txtar

Documentation: cuelang.org/go/cue/testdata/builtins

     1// unwrap into single value
     2unwrap: or([1, 1, 1])
     3
     4// unique duplicate values
     5unique1: or([2, 1, 1, 2])
     6
     7unique2: or([{a: 1}, {a: 1}, {a: 2}])
     8
     9// do not unique embedded scalars with differing values for child definitions.
    10embed1: or([{2, #x: 1}, {2, #x: 2}])

View as plain text