diff --git a/docs/gettingstarted.md b/docs/gettingstarted.md index 1a3a146..4358eba 100644 --- a/docs/gettingstarted.md +++ b/docs/gettingstarted.md @@ -20,15 +20,7 @@ getHelloWorld: String >> { } ``` -### 2.1 - Main -Main can be a variable named `main` that contains an anonymous function, a function named `main` or a function that has the `as_main` attribute: -``` -main #= {} -main >> {} -as_main helloWorld >> {} -``` - -### 2.2 - Function parameters +### 2.1 - Function parameters Parameters can be added to an anonymous function by specifying the types as follows: ``` addIntToString: (int, String)~ #= { a, b; @@ -43,7 +35,7 @@ addIntToString(a: int, b: String) => { } ``` -### 2.3 - Function calls +### 2.2 - Function calls A function can be simply invoked like this if it has no parameters: ``` helloWorld() @@ -97,7 +89,5 @@ class Program { } } -main >> { - Program("World") -} +program #= Program("World") ``` \ No newline at end of file