add example function definition
This commit is contained in:
parent
3934ab8da8
commit
ae21fc683f
11
README.md
11
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 )
|
||||
```
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user