top | item 46154567

(no title)

throwawaymaths | 2 months ago

'const expected = [_]u32{ 123, 67, 89, 99 };'

constant array with u32, and let the compiler figure out how many of em there are (i reserve the right to change it in the future)

discuss

order

bnolsen|2 months ago

'const expected: []const u32 = &.{ 123, 67, 89, 99 };' also works.