File: or.txtar

package info (click to toggle)
golang-github-cue-lang-cue 0.14.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 19,644 kB
  • sloc: makefile: 20; sh: 15
file content (10 lines) | stat: -rw-r--r-- 260 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
// unwrap into single value
unwrap: or([1, 1, 1])

// unique duplicate values
unique1: or([2, 1, 1, 2])

unique2: or([{a: 1}, {a: 1}, {a: 2}])

// do not unique embedded scalars with differing values for child definitions.
embed1: or([{2, #x: 1}, {2, #x: 2}])