This would calculate the factorial of 6, if the "self" was the function itself. Is there something that could allow this?
If[#[[1]] > 0, self[{#[[1]] - 1, #[[2]] #[[1]]}], Print[#[[2]]]] &[{6, 1}] There is also this function syntax:
Function[x, x If[x > 2, self[x - 1], 1]] which can be also be written using this shorthand syntax:
x \[Function] x If[x > 2, self[x - 1], 1]