#How do I create a struct out of array members for printing?
1 messages · Page 1 of 1 (latest)
you can just put the array in there with a single corresponding format specifier
std.debug.print("{d}", .{arr})
i have a custom format in which i want to print it though with some text in the middle of elements etc
you can add a format function in your struct and itll use that when printing the struct
o i'll look into this thanks