Add all the assignment code.

Signed-off-by: jmug <u.g.a.mariano@gmail.com>
This commit is contained in:
Mariano Uvalle 2025-01-24 18:59:28 -08:00
parent 58c6b1f81c
commit cfe502c598
1277 changed files with 48709 additions and 1 deletions

View file

@ -0,0 +1,17 @@
struct Color {
int red;
int green;
int blue;
(Color) -> Color f
}
Color rot(Color c1) {
var c2 = new Color{ red = c1.green; green = c1.blue; blue = c1.red; f = c1.f };
return c2;
}
global c = new Color { red = 10; green = 20; blue = 30 ; f = rot};
int program (int argc, string[] argv) {
return c.f(c).red;
}