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 <j...@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 iPhone
>
> On Feb 25, 2020, at 10:21 PM, Alex Golubenko <alexandr1golube...@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 rubyonrails-core+unsubscr...@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
> <https://groups.google.com/d/msgid/rubyonrails-core/479e2902-3cb1-4bb3-9347-5aeefe27379d%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>
> --
> 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-core+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/rubyonrails-core/CAECA2F2-A2E4-4AD1-842B-1FCB9331CB78%40josh.mn
> <https://groups.google.com/d/msgid/rubyonrails-core/CAECA2F2-A2E4-4AD1-842B-1FCB9331CB78%40josh.mn?utm_medium=email&utm_source=footer>
> .
>

-- 
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-core+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-core/CAAYv6Fxj538iTWUX%3DMOHkdK0fwswc6kFOxGKsC%2Bd_%2B9UOFMLzQ%40mail.gmail.com.

Reply via email to