1
0
Fork 0
mirror of synced 2025-09-23 12:18:44 +00:00
ZoKrates/zokrates_cli/examples/structs/set_member.code
2019-09-30 13:49:54 +02:00

29 lines
278 B
Text

struct Bar {
field[2] c
bool d
}
struct Foo {
Bar a
bool b
}
def main() -> (Foo):
Foo[2] f = [
Foo {
a: Bar {
c: [0, 0],
d: false
},
b: true
},
Foo {
a: Bar {
c: [0, 0],
d: false
},
b: true
}
]
f[0].a.c = [42, 43]
return f[0]