Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.ruby > #4578
| From | David Jacobs <developer@wit.io> |
|---|---|
| Newsgroups | comp.lang.ruby |
| Subject | Re: Counting how many times the same elements occurs in an array? |
| Date | 2011-05-15 15:33 -0500 |
| Organization | Service de news de lacave.net |
| Message-ID | <F6294F70823D4AE8917F1B050AA7457A@wit.io> (permalink) |
| References | <6a81112b3af069fa30e1c843c72f8be9@ruby-forum.com> <d6cf848516ea814ff3552bba56a5c4ba@ruby-forum.com> <93494823a74377b27080735e61527c5f@ruby-forum.com> |
Agreed, I'm not a huge fan of the solution. John and Robert's are much more straightforward, reusable, and elegant. You shouldn't have to use a variable called temp_array ... almost ever. On Sunday, 15 May 2011 at 4:01 pm, 7stud -- wrote: Thomas Greenwood wrote in post #998795: > > > > A kludge but it does the job. > > After asking for advice on a computer programming forum, the chosen > solution should never be a kludge. Rather, the solution should be > elegant and inspiring, and you should learn somethin. > > -- > Posted via http://www.ruby-forum.com/. >
Back to comp.lang.ruby | Previous | Next — Previous in thread | Find similar | Unroll thread
Counting how many times the same elements occurs in an array? Thomas Greenwood <nedpointsman@gmail.com> - 2011-05-15 05:01 -0500
Re: Counting how many times the same elements occurs in an array? John Feminella <johnf@bitsbuilder.com> - 2011-05-15 06:49 -0500
Re: Counting how many times the same elements occurs in an array? Robert Klemme <shortcutter@googlemail.com> - 2011-05-15 13:52 +0200
Re: Counting how many times the same elements occurs in an array? Thomas Greenwood <nedpointsman@gmail.com> - 2011-05-15 08:06 -0500
Re: Counting how many times the same elements occurs in an array? Robert Klemme <shortcutter@googlemail.com> - 2011-05-15 15:37 +0200
Re: Counting how many times the same elements occurs in an array? 7stud -- <bbxx789_05ss@yahoo.com> - 2011-05-15 15:01 -0500
Re: Counting how many times the same elements occurs in an array? Adam Prescott <adam@aprescott.com> - 2011-05-15 15:21 -0500
Re: Counting how many times the same elements occurs in an array? David Jacobs <developer@wit.io> - 2011-05-15 15:33 -0500
csiph-web