Skip to content

Instantly share code, notes, and snippets.

@evmorov
Last active June 28, 2016 21:23
Show Gist options
  • Save evmorov/909785c070da7518de788fac7852fa10 to your computer and use it in GitHub Desktop.
Save evmorov/909785c070da7518de788fac7852fa10 to your computer and use it in GitHub Desktop.
arr = [0, 1, 2, 3, 5, 6]
n = 0
n += 1 until arr[n] != n
puts n
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment