This is an Advent of Code solution. Click to reveal!
The cogs are turning...
https://zigbin.io/64dd2cClick to copy https://zigbin.io/64dd2c/runClick to copy https://zigbin.io/64dd2c/rawClick to copy
const std =@import("std");fnWrap(comptime T:type,comptime i:comptime_int)type{if(i >0){returnstruct{
i:i32= i,
wrapped:Wrap(T, i -1),};}else{returnstruct{ value: T };}}pubfnmain()void{var x:Wrap(i32,2)=undefined;}