this is my first try using generics directly, and I am having trouble restricting the type to numerics and Bools only, this is the snippet
pub fn Foo(comptime T: type) type {
return struct {
const Self = @This;
fizz: T,
buzz: T,
pub fn init(fizz:T, buzz:T) Self {
return .{.fizz = fizz, .buzz = buzz};
}
}
}
