Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save mlambie/123532 to your computer and use it in GitHub Desktop.
Save mlambie/123532 to your computer and use it in GitHub Desktop.
# Recursion
def recursive x
return if x >= 10
puts x
recursive x + 1
end
recursive 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment