Extension#
Introduction#
Extensions allow you to add extra methods and functions to existing classes or structs. Fields cannot be added this way. Private members cannot be accessed by extensions.
1 2 3 | Struct Foo Field i:Int = 0 End |
1 2 3 4 5 | Struct Foo Extension Method Increment() i += 1 End End |