Skip to content

Instantly share code, notes, and snippets.

@mjhea0
Created May 14, 2013 07:16
Show Gist options
  • Select an option

  • Save mjhea0/5574241 to your computer and use it in GitHub Desktop.

Select an option

Save mjhea0/5574241 to your computer and use it in GitHub Desktop.
BASIC ruby recursion
def recurse(count=0)
return if count == 10
puts count
count += 1
recurse(count)
end
recurse
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment