Last active
August 29, 2015 14:24
-
-
Save Addvilz/d317c6a67bafb99df216 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
namespace Hello.World | |
import Iterator | |
import List | |
import LinkedList as BaseList | |
import Map | |
import OtherInterface | |
Main | |
const EXCL_MARK is '!' | |
private hello is 'Hello' | |
private world is 'World' | |
public static @construct(Map argv = []) | |
instance is Main | |
instance.showHelloWorld() | |
anon is (Integer x, Integer y) | |
return x * y | |
private showHelloWorld() | |
stdout String.format('%s %s %s', this.hello, this.world, Main:EXCL_MARK) | |
private showHelloWorld(String world) // Look, Ma', I am a overload! | |
world is !world.isVoid() ? world : this.world | |
stdout String.format('%s %s %s', this.hello, world, Main:EXCL_MARK) | |
primitive final CustomMap extends Map, List, BaseList implements Iterator | |
public next() | |
return parent.next() | |
private for Hello.World interface SomeInterface extends OtherInterface | |
public thing() | |
public otherThing() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment