Compile-time calculation: Difference between revisions
m
→{{header|Oforth}}
Line 497:
func: newFunction { FACT10 println }</lang>
You can
<lang Oforth>20 seq map(#[ seq reduce(#*) ]) Constant new: ALLFACTS
func: fact(n) { ALLFACTS at(n) }</lang>
|