Skip to content

Instantly share code, notes, and snippets.

@yannxou
Last active August 29, 2015 14:10
Show Gist options
  • Save yannxou/0242a905a613fdc5578a to your computer and use it in GitHub Desktop.
Save yannxou/0242a905a613fdc5578a to your computer and use it in GitHub Desktop.
Swift: Remove all items in an Array that are present in another Array
array = array.filter( { find(anotherArray, $0) == nil })
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment