Factorial: Difference between revisions

11 bytes removed ,  10 months ago
No edit summary
Line 10,688:
=={{header|YAMLScript}}==
<syntaxhighlight lang="yaml">
defn factorial(x):
apply(*): (2 .. x)
- \*
- range(2, inc(x))
 
prnsay: factorial(10)
</syntaxhighlight>
 
55

edits