Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Rubyfags

Name: Anonymous 2011-05-13 11:13

Your language is shit and the programs you write are slow. Switch to Python and be enlightened.

Name: Anonymous 2011-05-25 14:27

Lisp:

factorial N:pos? -> N*(factorial N-1)
        ; N      -> 1


Ruby:

def factorial(n)
  case n
  when 0
    1
  when 1..Inf
    n*factorial(n-1)
  when _
    (_|_)
  end
end

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List