exercises/patches/patches/082_anonymous_structs3.patch
2023-01-21 17:03:40 +01:00

16 lines
355 B
Diff

85c85
< const fields = ???;
---
> const fields = @typeInfo(@TypeOf(tuple)).Struct.fields;
92c92
< for (fields) |field| {
---
> inline for (fields) |field| {
120,122c120,122
< field.???,
< field.???,
< ???,
---
> field.name,
> field.type,
> @field(tuple, field.name),