Hello, I have this big array of hashes: A =[ h0, h1, h2, ..., hn] some hi's' :cue key is true, others' is false. e.g., h1[:cue] = false h2[:cue] = false h3[:cue] = true h4[:cue] = false h5[:cue] = true ... hn[:cue] = ...
Again, these hashes are in an array, A. Now, I'd like to group them into smaller arrays whose last item has a true cue so A' = [ [h1, h2, h3], [h4, h5], ... , [...] ] Is there a built-in method to cook this up? If not, what combination of methods might you think would work most efficiently? Thank You --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---

