We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
select + reject → partition — Use partition instead of two separate select/reject calls to iterate once.
partition
select
reject
ary.select { |x| x > 0 } ary.reject { |x| x > 0 }
There was an error while loading. Please reload this page.