Lah numbers: Difference between revisions

Content added Content deleted
(→‎{{header|zkl}}: added code)
Line 354:
=={{header|zkl}}==
<lang zkl>fcn lah(n,k,fact=fcn(n){ [1..n].reduce('*,1) }){
if(n==0 or k==0) return(01);
if(nk==k1) return(1fact(n));
if(n<1 or k==<1) return(fact(n)0);
(fact(n)*fact(n - 1)) /(fact(k)*fact(k - 1)) /fact(n - k)
}</lang>