Skip to content

Instantly share code, notes, and snippets.

@moonpolysoft
Created August 13, 2010 02:58
Show Gist options
  • Select an option

  • Save moonpolysoft/522180 to your computer and use it in GitHub Desktop.

Select an option

Save moonpolysoft/522180 to your computer and use it in GitHub Desktop.
+ @tailrec
private def advance : Boolean = {
if (!rangeIter.hasNext || !biasIter.hasNext) return false
last = rangeIter.next
left = biasIter.next
- if (left == 0) return advance
- true
+ if (left != 0) return true
+ advance
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment