mirror of
https://codeberg.org/ziglings/exercises.git
synced 2024-12-26 09:30:31 +00:00
16 lines
355 B
Diff
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),
|