Skip to content

Instantly share code, notes, and snippets.

@Jacoby6000
Created May 27, 2015 03:01
Show Gist options
  • Save Jacoby6000/3e172e621746832f49be to your computer and use it in GitHub Desktop.
Save Jacoby6000/3e172e621746832f49be to your computer and use it in GitHub Desktop.
val bodies: ListBuffer[Body]
def gravitate(): Unit = {
val length = bodies.length
for {
i <- 0 until length
bodyA <- bodies(i)
j <- (i+1) until length
bodyB <- bodies(j)
} yield {
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment