Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

13 lines (10 sloc) 0.164 kB
# factorial.fy
# Example of factorial
class Fixnum {
def factorial {
1 upto: self . product
}
}
1 upto: 10 do: |i| {
"#{i}! = #{i factorial}" println
}
Jump to Line
Something went wrong with that request. Please try again.