Skip to content

Instantly share code, notes, and snippets.

@crossaidi
Created October 17, 2013 08:14
Show Gist options
  • Save crossaidi/7021051 to your computer and use it in GitHub Desktop.
Save crossaidi/7021051 to your computer and use it in GitHub Desktop.
concat plus uniq! for arrays
tags = %w[foo bar]
tags |= %w[foo buz] # => ["foo", "bar", "buz"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment