#!/usr/bin/ruby

#
## https://rosettacode.org/wiki/Compile-time_calculation
#

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