Download

[Request] Function Input/Output Variable Type Neutrality

I have a few functions that check an array for a specific index and output whatever it finds. I have byte arrays and bool arrays that work exactly the same, except I have to duplicate the functions to change the type.

It would be great if I could just have a neutral array input that would take whatever array I throw at it, with the output updating to match. Thanks!

I believe ‘wildcard’ functionality like this is already supported on macros. Have a look at the ‘for each’ macro for example!

I suppose I could convert all these functions to macros, though I think I would still prefer a wildcard option in functions for the code reuse aspect.