Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

my_array.select { |item| item == somefiltervalue }

At least that's one way to do it in ruby.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: