Skip to content

Instantly share code, notes, and snippets.

@bjornharrtell
Created September 8, 2012 10:57
Show Gist options
  • Save bjornharrtell/3673470 to your computer and use it in GitHub Desktop.
Save bjornharrtell/3673470 to your computer and use it in GitHub Desktop.
Filter a with c?
val a = Vector.fill(64){true}
val b = Vector.fill(64){false}
val c = b.updated(10, true)
a zip c foreach { case (ae, ce) => if (ce) ae = false }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment