Add docs/SIMPLE_FUNCTIONS.md from Claro v1.17.26 zip
This commit is contained in:
@@ -0,0 +1,23 @@
|
|||||||
|
# Simple Functions
|
||||||
|
|
||||||
|
Claro teaches functions with plain words.
|
||||||
|
|
||||||
|
Preferred beginner style:
|
||||||
|
|
||||||
|
```claro
|
||||||
|
TEACH greet name
|
||||||
|
SAY "Hello " + name
|
||||||
|
END
|
||||||
|
|
||||||
|
DO greet "Jon"
|
||||||
|
```
|
||||||
|
|
||||||
|
Older compatible style:
|
||||||
|
|
||||||
|
```claro
|
||||||
|
TEACH greet TAKES name
|
||||||
|
SAY "Hello " + name
|
||||||
|
LEARNED
|
||||||
|
|
||||||
|
CALL greet WITH "Jon"
|
||||||
|
```
|
||||||
Reference in New Issue
Block a user