Catalan numbers: Difference between revisions

→‎{{header|PicoLisp}}: Simplified 'cache' argument semantics
(Added Wortel)
(→‎{{header|PicoLisp}}: Simplified 'cache' argument semantics)
Line 2,016:
(if (=0 N)
1
(cache '(NIL) (pack (char (hash N)) N) # Memoize
(sum
'((I) (* (catalanRec I) (catalanRec (- N I 1))))
Anonymous user