Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Enumerable things
- people.select{|m| m =~ /^j/}
- people.grep(/^j/)
- people[0].freeze
- people.select(&:frozen?)
- frozen, not_frozen = people.partition(&:frozen?)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement