github.com/solo-io/cue@v0.4.7/doc/tutorial/basics/0_intro/50_order.txt (about)

     1  cue eval -i order.cue
     2  cmp stdout expect-stdout-cue
     3  
     4  -- frontmatter.toml --
     5  title = "Order is irrelevant"
     6  description = ""
     7  
     8  -- text.md --
     9  CUE's basic operations are defined in a way that the order in which
    10  you combine two configurations is irrelevant to the outcome.
    11  
    12  This is crucial property of CUE
    13  that makes it easy for humans _and_ machines to reason over values and
    14  makes advanced tooling and automation possible.
    15  
    16  -- order.cue --
    17  a: {x: 1, y: int}
    18  a: {x: int, y: 2}
    19  
    20  b: {x: int, y: 2}
    21  b: {x: 1, y: int}
    22  
    23  -- expect-stdout-cue --
    24  a: {
    25      x: 1
    26      y: 2
    27  }
    28  b: {
    29      x: 1
    30      y: 2
    31  }