diff --git a/docs/SNIPPET.txt b/docs/SNIPPET.txt index eb823ea..b9053b9 100644 --- a/docs/SNIPPET.txt +++ b/docs/SNIPPET.txt @@ -1,2 +1,8 @@ -print join.with:"" filter "H1e2l3l4o5, W6o7r8l9d!" 'char -> numeric? char -; Hello, World! \ No newline at end of file +factorial: function [n][ + (n > 1)? -> n * factorial n-1 + -> 1 +] + +0..10 | map => factorial + | select.first => [& > 123] + | print