RosettaCodeData/Task/Left-factorials/Sidef/left-factorials-2.sidef

4 lines
60 B
Text
Raw Permalink Normal View History

2016-12-05 23:44:36 +01:00
func left_fact(k) {
2017-09-23 10:01:46 +02:00
^k -> reduce({ |a,b| a + b! }, 0)
2016-12-05 23:44:36 +01:00
}