From ae21fc683f9511975ae7eebf0507b80323c4cd0e Mon Sep 17 00:00:00 2001 From: NunoSempere Date: Sun, 7 May 2023 18:43:09 -0400 Subject: [PATCH] add example function definition --- README.md | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 161052a..ddeafd0 100644 --- a/README.md +++ b/README.md @@ -74,12 +74,13 @@ mumble> / a b c mumble> VERBOSITY=0 mumble> VERBOSITY=1 mumble> VERBOSITY=2 -mumble> def { {plus} {(@ {x y} {+ x y})} } +mumble> def {sq} (@ {x} {* x x}) +mumble> sq 44 +1936.000000 +mumble> def {sqsum} (@ {x y} {(+ (sq x) (sq y))}) ( ) -mumble> plus -( @ { x y } { + x y } ) -mumble> eval {plus 1 2} -3.000000 +mumble> sqsum 2 3 +( 13.000000 ) ```