mirror of
https://github.com/circify/circ.git
synced 2026-01-09 21:58:19 -05:00
16 lines
257 B
Plaintext
16 lines
257 B
Plaintext
struct Pt {
|
|
field x;
|
|
field y;
|
|
}
|
|
|
|
struct Pts {
|
|
Pt[2] pts;
|
|
}
|
|
|
|
def main(private field y) -> field {
|
|
Pt p1 = Pt {x: 2, y: y};
|
|
Pt p2 = Pt {x: y, y: 2};
|
|
Pts[1] pts = [Pts { pts: [p1, p2] }];
|
|
return pts[0].pts[0].y * pts[0].pts[1].x;
|
|
}
|