tyedef haxe code example
Example: typedef haxe
// A typedef can give a name to any other type:
typedef IA = Array<Int>;
typedef User = {
var age : Int;
var name : String;
}
typedef Iterable<T> = {
function iterator() : Iterator<T>;
}
// A typedef can give a name to any other type:
typedef IA = Array<Int>;
typedef User = {
var age : Int;
var name : String;
}
typedef Iterable<T> = {
function iterator() : Iterator<T>;
}