Answers for "typedef haxe"

1

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>;
}
Posted by: Guest on August-26-2020

Browse Popular Code Answers by Language