Register
|
Login
Home
About
Demo
Blog
Forums
Download
Plugins
Install
Translation
Contact
Forums
»
Ruby on Rails
» Ruby Set union
Search:
techslam
2010-06-27 16:03:16 UTC
Join two arrays and remove all the duplicates with the pipe operator (|).
[ "a", "b", "c" ] | [ "c", "d", "a" ] # => ["a", "b", "c", "d"]