From df2d882538b4553088773080e5e14cb41bd0bb6f Mon Sep 17 00:00:00 2001 From: Greg Shuflin Date: Mon, 5 Aug 2024 01:15:49 -0700 Subject: [PATCH] Add README example --- README.md | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/README.md b/README.md index 71ef21e..e801659 100644 --- a/README.md +++ b/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 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