From: Gavin Kistner Date: 2008-03-27T05:30:49+09:00 Subject: Re: Recent changes in Range#step behavior From: Yukihiro Matsumoto [mailto:matz@ruby-lang.org] > |I ask for validating arguments to the claim that a range is a set of > |discrete elements. I contend that it is only discrete once it is > |actually expanded/iterated. It seems more appropriate to have > |my_range.to_set.include?( foo ) when you truly want to talk about set > |membership. > > You can use cover? for continuous inclusion check. Oops. Then I retract my concern. :) If it doesn't already (I don't have 1.9 here at work), I suggest that the documentation pages for include?/member? should mention cover? for those confused by the naming.