--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-co...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-core/479e2902-3cb1-4bb3-9347-5aeefe27379d%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-core/CAECA2F2-A2E4-4AD1-842B-1FCB9331CB78%40josh.mn.
It wouldn't be alias 😅The main idea is to implement method which we can use to exclude elements from array by their indexes.For example:
%w( a b c d e f).except(0, -1)=> ['b', 'c', 'd', 'e']
ср, 26 февр. 2020 г., 06:34 Josh Brody <jo...@josh.mn>:
Would this alias Array#excluding? I think the Array#except is natural and I’ve found myself asking why it’s not aliased already many times but I’m not the one to ask. 🙂
Sent from my iPhoneOn Feb 25, 2020, at 10:21 PM, Alex Golubenko <alexandr1...@gmail.com> wrote:
--Hi guys!Time to time I meet questions on SO about how to take elements from array avoid some indexes.I think it might be helpful for many developers to have something like `Hash#except` but for `Array`.I would like to add PR with it if someone interested in it.Thanks in advance for any thoughts about this idea.
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonra...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-core/479e2902-3cb1-4bb3-9347-5aeefe27379d%40googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonra...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-co...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-core/6904f0ef-9b96-432d-95a4-f35d8892303b%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-core/6904f0ef-9b96-432d-95a4-f35d8892303b%40googlegroups.com.