# Set#include? $B$N5sF0$,(B 1.8.6 $B$^$G$H(B 1.8.7 $B0J9\_$G0\[$J$k(B

**URL:** <https://www.ruby-forum.com/t/set-include-b-n5sf0-b-1-8-6-b-g-h-b-1-8-7-b0j9-g0-j-k-b/169235>\
**Category:** Development\
**Created:** [June 1, 2009, 8:54am UTC](https://www.ruby-forum.com/t/set-include-b-n5sf0-b-1-8-6-b-g-h-b-1-8-7-b0j9-g0-j-k-b/169235 "2009-06-01T08:54:23Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![okkez](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/o/8edcca/32.png) [@okkez](https://www.ruby-forum.com/u/okkez)\
**Post date:** [June 1, 2009, 8:54am UTC](https://www.ruby-forum.com/t/set-include-b-n5sf0-b-1-8-6-b-g-h-b-1-8-7-b0j9-g0-j-k-b/169235/1 "2009-06-01T08:54:23Z")

</div>

okkez e$B$G$9!#e(B  
e$B$k$j$^$N%A%1%C%H$r@0M}$7$F$$$?$i$h$/$o$+$i$J$/$J$C$?$N$G65$($F$$$?$@$1$k$H=u$+$j$^$9!#e(B  
[http://redmine.ruby-lang.org/issues/show/82](http://redmine.ruby-lang.org/issues/show/82)

e$B0J2\<$N%9%/%j%W%H$N\<B9T7k2L$,e(B 1.8.6 e$B$^$G$He(B 1.8.7  
e$B0J9\_$G0[$J$j$^$9!#e(B  
1.8.6 e$B$^$G$OA4$Fe(B true e$B$G$9$,e(B 1.8.7 e$B0J9\_$Oe(B false, true,  
false e$B$K$J$j$^$9!#e(B  
e$B$3$N$h$&$J7k2L$K$J$C$F$$$kM}M3$H!"$3$N5sF0$,@5$7$$$N$+$I$&$+$,CN$j$?$$$G$9!#e(B  
e$B$h$m$7$/$\*4j$$$7$^$9!#e(B

require ‘set’

s = Set.new  
s \<\< s  
p s.include?(s)  
s1 = Set.new  
s2 = Set.new  
s1 \<\< s2  
p s1.include?(s2)  
s2 \<\< s1  
p s2.include?(s1)
