Add README example

This commit is contained in:
Greg Shuflin 2024-08-05 01:15:49 -07:00
parent ab7d6af5f3
commit df2d882538

View File

@ -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
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
Schala started out life as an experiment in writing a Javascript-like