update readme
Some checks failed
Trigger Bot Build / trigger-bot-build (push) Has been cancelled

This commit is contained in:
2024-11-27 01:43:35 -05:00
parent b953a372c2
commit 5dedce8f6d

View File

@@ -77,10 +77,15 @@ 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. 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 x
+ x 1
(inc 24) # => 25 (inc 24) # => 25
:. pythag a b sqrt + ** a 2.0 ** b 2.0 : sqrt x
** x 0.5
:. pythag a b
(sqrt + ** a 2.0 ** b 2.0)
(pythag 3 4) # => 5 (pythag 3 4) # => 5
:::::. ten'args a b c d e f g h i j :::::. ten'args a b c d e f g h i j