ns ns0 http://foo.com
ns ns1 http://bar.com

var name = upper("name")

var size = sizeOf([1,2])
---
{
    a: {age: 123} update {
        case .age -> $ + 1
    },
    b: [1,2,3,4] update {
        case value at [1] -> value * 2
    },
    c: {name: "shoki", name: "mariano"} update {
        case name at .name -> upper(name)
    },
    d: {name: "shoki", name: "mariano"} update {
       case name at .*name -> upper(name)
    },
    e: {name @(nick: "shoki"): "Leandro Shokida"} update {
       case name at .name.@nick -> upper(name)
    },
    f: [1,2,3,4] update {
        case value at [-1] -> value * 2
    },
    g: {ns0#name: "Mariano"} update{
        case .name -> "Shoki"
    },
    h: {ns0#name: "Mariano"} update{
        case .ns1#name -> "Tomo"
        case .ns0#name -> "Anita"
    },
    i: [1,2,3,4] update {
        case value at [-10] -> value * 2
    },
    j: [1,2,3,4] update {
        case value at [10] -> value * 2
    },
    k: {a:"Mariano", a: "Shoki", a: "Tomo", a: "Ana" } update {
        case (name, index) at .*a -> name ++ index
    },
    l: {a:"Mariano", a: "Shoki", a: "Tomo", a: "Ana" } update {
        case (name, index) at .*a if(isEven(index)) -> upper(name)
    },
    m:  {} update {
        case .name! -> "Mariano"
        case .team.name! -> "DW"
        case .team.members[0].name! -> "Leandro"
        case .team.members[0].lastName! -> "Shokida"
        case .team.members[1].name! -> "Christian"
        case .team.members[1].lastName! -> "Chibana"
    },
    n:  {} update {
        case .user.@name! -> "Mariano"
    },
    o: [1] update {
         case [2]! -> "2"
         case [1]! -> "1"
    },
    p: {NAME: "DFL"} update {
         case  ."$(name)"-> "DW"
    },
    q: [1,2] update {
        case [size]! -> 3
    },
    l: {message: "", test: {a: 123}} update {
        case .test.b! -> 123
    },
    g: {name @(alias: "shoki"):{}} update {
        case name at .name.@nick! -> "Soki"
        case userData at .name.data.@name! -> "Leandro"
        case userData at .name.data.@lastName! -> "Shokida"
    }
}