Knowledge Base (Re: set operation)

Hi,

It’s very exciting to see that the Ruby community is quite active. Thanks
for the help. BTW, is there a KB style archive of previous discussion so
that we can search for help before asking here?

Thanks!
Shannon

···

From: “Gavin Sinclair” gsinclair@soyabean.com.au
Reply-To: ruby-talk@ruby-lang.org
To: ruby-talk@ruby-lang.org (ruby-talk ML)
Subject: Re: set operation
Date: Wed, 27 Nov 2002 20:59:03 +0900

From: nobu.nokada@softhome.net

Hi,

At Wed, 27 Nov 2002 20:18:15 +0900, > > Tim Bates wrote:

if ([string] & array_of_strings).length!=0 then…

I don’t know what ‘in’ is used for, but another way to do this might
be
if [array_of_strings].index(myString) then…

Or:

array_of_strings.include?(myString)

I’ve often thought that Array#=== should do the same thing as
Array#include?
It seems wasted to be the same as ==.

Maybe it’s just me.

Gavin


Help STOP SPAM with the new MSN 8 and get 2 months FREE*
http://join.msn.com/?page=features/junkmail

Hi –

···

On Wed, 27 Nov 2002, Shannon Fang wrote:

Hi,

It’s very exciting to see that the Ruby community is quite active. Thanks
for the help. BTW, is there a KB style archive of previous discussion so
that we can search for help before asking here?

You can search the ruby-talk archive at http://www.ruby-talk.org.

David


David Alan Black
home: dblack@candle.superlink.net
work: blackdav@shu.edu
Web: http://pirate.shu.edu/~blackdav

Hi,

It’s very exciting to see that the Ruby community is quite active. Thanks
for the help. BTW, is there a KB style archive of previous discussion so
that we can search for help before asking here?

Thanks!
Shannon

Check out the FAQ (http://www.rubygarden.org/iowa/faqtotum) as well. Also see
the newcomers’ list (recently posted) for some other resources.

Cheers,
Gavin

···

From: “Shannon Fang” xrfang@hotmail.com

You can search the ruby-talk archive at http://www.ruby-talk.org.

And also here: http://groups.google.com/groups?q=group%3Acomp.lang.ruby

Chris

“Gavin Sinclair” gsinclair@soyabean.com.au wrote in message
news:11c801c29669$21f8c840$436032d2@nosedog…

From: “Shannon Fang” xrfang@hotmail.com

It’s very exciting to see that the Ruby community is quite active.
Thanks
for the help. BTW, is there a KB style archive of previous discussion so
that we can search for help before asking here?

Actually, the list / newsgroup is mirrored on the web, so Google tracks
everything.
Therefore this list is effectively a KB by itself, it even has KB numbers as
message id’s.

For example, try Google “threading problem Ruby”

The first hit yields KB article number 18699:

http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-talk/18699

Of course, you could also search in Google groups directly under
comp.lang.ruby, but then you don’t get the article id.

Mikkel

“MikkelFJ” mikkelfj-anti-spam@bigfoot.com wrote in message
news:3de55bef$0$82089$edfadb0f@dtext01.news.tele.dk…

The first hit yields KB article number 18699:

http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-talk/18699

I should add that the more official link to an article, once the id is know
is:

http://www.ruby-talk.org/18699

some write
[ruby-talk:18699]
but this can’t clicked directly in mail and news editors.

Mikkel