Skip to content

Commit

Permalink
Updated SNIPPET.txt (#121)
Browse files Browse the repository at this point in the history
  • Loading branch information
drkameleon authored Dec 7, 2024
1 parent e244762 commit f39b945
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions docs/SNIPPET.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,8 @@
print join.with:"" filter "H1e2l3l4o5, W6o7r8l9d!" 'char -> numeric? char
; Hello, World!
factorial: function [n][
(n > 1)? -> n * factorial n-1
-> 1
]

0..10 | map => factorial
| select.first => [& > 123]
| print

0 comments on commit f39b945

Please sign in to comment.