Add README example
This commit is contained in:
parent
ab7d6af5f3
commit
df2d882538
20
README.md
20
README.md
@ -20,6 +20,26 @@ environment. Type `:help` for more information, or type in text in any
|
|||||||
supported programming language (currently only `schala-lang`) to evaluate it in
|
supported programming language (currently only `schala-lang`) to evaluate it in
|
||||||
the REPL.
|
the REPL.
|
||||||
|
|
||||||
|
### Examples
|
||||||
|
|
||||||
|
Try running the following `schala-lang` code example in the REPL:
|
||||||
|
|
||||||
|
```
|
||||||
|
>> 1 + 1
|
||||||
|
(Total time)=> 736.368µs
|
||||||
|
=> 2
|
||||||
|
>> fn foo(x) { x + 10 }
|
||||||
|
(Total time)=> 772.496µs
|
||||||
|
=>
|
||||||
|
>> foo(0)
|
||||||
|
(Total time)=> 593.591µs
|
||||||
|
=> 10
|
||||||
|
>> 5 + foo(1)
|
||||||
|
(Total time)=> 1.119916ms
|
||||||
|
=> 16
|
||||||
|
>>
|
||||||
|
```
|
||||||
|
|
||||||
## History
|
## History
|
||||||
|
|
||||||
Schala started out life as an experiment in writing a Javascript-like
|
Schala started out life as an experiment in writing a Javascript-like
|
||||||
|
Loading…
Reference in New Issue
Block a user