Catalan numbers: Difference between revisions
Content added Content deleted
m (→{{header|Wren}}: Minor tidy) |
|||
Line 6,169: | Line 6,169: | ||
{{libheader|Wren-fmt}} |
{{libheader|Wren-fmt}} |
||
{{libheader|Wren-math}} |
{{libheader|Wren-math}} |
||
<syntaxhighlight lang=" |
<syntaxhighlight lang="wren">import "./fmt" for Fmt |
||
import "/math" for Int |
import "./math" for Int |
||
var catalan = Fn.new { |n| |
var catalan = Fn.new { |n| |
||
Line 6,232: | Line 6,232: | ||
15 9694845 |
15 9694845 |
||
</pre> |
</pre> |
||
=={{header|XLISP}}== |
=={{header|XLISP}}== |
||
<syntaxhighlight lang="lisp">(defun catalan (n) |
<syntaxhighlight lang="lisp">(defun catalan (n) |