After testing, seems Zig doesn't have overloaded functions. Is there a way for handling implementing generics/templates? For example, writing a function that takes a union type argument that subtypes can be cast into.
An example is writing a function that can print an array by taking one of any numeric type, not just u8
fn generic_print(arr: []u8);