I'm looking for a quick way to filter an array in Ruby and am wondering whether the language has a counterpart to the filter method native to the JavaScrpt array object.
-
2Out of curiousity, if you type "ruby array filter" into A Famous Web Search Engine, do you not get this or this or this or any of several others within the first few results?T.J. Crowder– T.J. Crowder2015-04-28 06:51:06 +00:00Commented Apr 28, 2015 at 6:51
-
Just a suggestion, you have to read ruby array documentationrails_id– rails_id2015-04-28 06:54:41 +00:00Commented Apr 28, 2015 at 6:54
-
1That said, I'm not seeing a good, simple duplicate of that question here on Stack Overflow.T.J. Crowder– T.J. Crowder2015-04-28 07:04:15 +00:00Commented Apr 28, 2015 at 7:04
-
Yep. Even a Google search immediately turned up a bunch of stuff I didn't need.Michael P.– Michael P.2015-04-28 07:06:42 +00:00Commented Apr 28, 2015 at 7:06
Add a comment
|