Created
October 17, 2013 08:14
-
-
Save crossaidi/7021051 to your computer and use it in GitHub Desktop.
concat plus uniq! for arrays
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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