Talk:Y combinator: Difference between revisions

Line 186:
A Y-combinator implementation of factorial in the [[Wolfram Language]] is,
 
<source lang=ocaml> Y = Function[f, #[#]&[Function[g, f[g[g][##]&]]]];
factorial = Y[Function[f, If[# < 1, 1, # f[# - 1]] &]];
factorial[6] (*Yields 120*)</source>
 
[[User:Thepigdog|Thepigdog]] ([[User talk:Thepigdog|talk]]) 03:18, 26 May 2015 (UTC)
Anonymous user