Hash#select and Hash#reject

Discussion in 'Ruby' started by Erik Veenstra, Sep 21, 2005.

  1. Enumerable#select is kind of the opposite of Enumerable#reject.

    But Hash#select isn't the opposite of Hash#reject. The latter
    is defined explicitly in Hash, the former is mixed in with
    Enumerable.

    Why?

    It bit me...

    gegroet,
    Erik V. - http://www.erikveen.dds.nl/
     
    Erik Veenstra, Sep 21, 2005
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Replies:
    5
    Views:
    354
  2. Geert Fannes

    select! not present but reject! is

    Geert Fannes, Oct 5, 2005, in forum: Ruby
    Replies:
    43
    Views:
    454
    Ryan Leavengood
    Oct 9, 2005
  3. Alexander Presber
    Replies:
    50
    Views:
    468
    Trans
    Jun 25, 2007
  4. Srijayanth Sridhar
    Replies:
    19
    Views:
    627
    David A. Black
    Jul 2, 2008
  5. Matt Beckley
    Replies:
    6
    Views:
    124
    Simon Krahnke
    Oct 31, 2009
Loading...

Share This Page