TurboScript
TurboScript copied to clipboard
User wants to use generic data types with functions
What? User wants to have generic data type as parameters for functions
How? Implement generic parameters for functions
function funcName<T>(arg:T):T{
}
We already implemented generics for classes (#2) therefore same code can be reused to implement this feature.