tweak: add init example.

This commit is contained in:
NunoSempere 2023-05-07 23:08:35 -04:00
parent 4f8f020944
commit 61df0ac26e
2 changed files with 2 additions and 3 deletions

View File

@ -76,11 +76,10 @@ mumble> VERBOSITY=1
mumble> VERBOSITY=2
mumble> def {sq} (@ {x} {* x x})
mumble> sq 44
1936.000000
mumble> def {sqsum} (@ {x y} {(+ (sq x) (sq y))})
( )
mumble> sqsum 2 3
( 13.000000 )
mumble> def {init} (@ {xs} { list((head xs)) } )
mumble> init {1 2}
```

BIN
mumble

Binary file not shown.