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

6 lines
72 B
Text
Raw Permalink Normal View History

2013-04-10 22:43:41 -07:00
fun {Fac X}
case X of 0 then 1
[] _ then X * {Fac X-1}
end
end