From 5dedce8f6d7ef2f2dcc72c062a142ff1fa989708 Mon Sep 17 00:00:00 2001 From: minneelyyyy Date: Wed, 27 Nov 2024 01:43:35 -0500 Subject: [PATCH] update readme --- README.md | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index bc5cd19..7c9df6b 100644 --- a/README.md +++ b/README.md @@ -77,11 +77,16 @@ export (e phi) All functions in Lamm are **scoped** similarly to variables. Functions are declared using the `:` operator, which can be extended with more `:` and `.` characters to let Lamm know how many arguments the function takes. ``` -: inc x + x 1 - (inc 24) # => 25 +: inc x + + x 1 +(inc 24) # => 25 -:. pythag a b sqrt + ** a 2.0 ** b 2.0 - (pythag 3 4) # => 5 +: sqrt x + ** x 0.5 + +:. pythag a b + (sqrt + ** a 2.0 ** b 2.0) +(pythag 3 4) # => 5 :::::. ten'args a b c d e f g h i j [a b c d e f g h i j]