ZenScript main repository
Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

Arrays.zs 617B

12345678910111213141516171819
  1. export expand <T : Comparable<T>> T[] {
  2. public extern sort() as void;
  3. public extern sorted() as T[];
  4. }
  5. export expand <T : Hashable<T>> T[] {
  6. public implements Hashable<T[]> {
  7. public extern hashCode() as int;
  8. public extern == (other as T) as bool;
  9. }
  10. }
  11. export expand <T> T[] {
  12. public extern sort(comparator as function(a as T, b as T) as int) as void;
  13. public extern sorted(comparator as function(a as T, b as T) as int) as T[];
  14. public extern copy() as T[];
  15. public extern copy(newSize as int) as T[];
  16. public extern copyTo(target as T[], sourceOffset as int, targetOffset as int, length as int) as void;
  17. }