diff --git a/lynglib/stdlib/lyng/root.lyng b/lynglib/stdlib/lyng/root.lyng index 01c72a7..644857a 100644 --- a/lynglib/stdlib/lyng/root.lyng +++ b/lynglib/stdlib/lyng/root.lyng @@ -22,6 +22,23 @@ extern class Iterator { fun toList(): List } +extern class Collection : Iterable { +} + +extern class Array : Collection { +} + +extern class List : Array { +} + +extern class Set : Collection { +} + +extern class Map { +} + +extern class MapEntry + // Built-in math helpers (implemented in host runtime). extern fun abs(x: Object): Real extern fun ln(x: Object): Real