RosettaCodeData/Task/Conditional-structures/Oz/conditional-structures-3.oz

6 lines
72 B
Text
Raw Permalink Normal View History

2023-07-01 11:58:00 -04:00
fun {Fac X}
case X of 0 then 1
[] _ then X * {Fac X-1}
end
end