Overview of Haxe code snippets, examples and tutorials tagged with type parameter.
Jan 25, 2018 Other / Passing different types to a function parameter
Sometimes you find yourself in the need of passing different types to the same parameter of a function. While there isn't a built-in way of doing this in Haxe, thanks to its flexible type system, we can solve this problem. We will explore two ways to achieve this.‥