Compile-time calculation

The compile-time evaluation is limited at a constant expression, which cannot refer at any other user-defined data, such as variables or functions.

define n = (10!)
say n

or:

define n = (func(n){ n > 0 ? __FUNC__(n-1)*: 1 }(10))
say n

Last updated