1
0
Fork 0
mirror of synced 2025-09-24 04:40:05 +00:00
ZoKrates/zokrates_cli/examples/tuples/set_member.zok
2022-06-28 19:23:45 +02:00

19 lines
259 B
Text

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