General

Profile

lellisga (Li Ellis Galardo)

  • Login: lellisga
  • Email: lellisga@gmail.com
  • Registered on: 05/30/2012
  • Last sign in: 07/28/2012

Issues

open closed Total
Assigned issues 0 0 0
Reported issues 0 1 1

Activity

06/04/2012

02:36 PM Ruby Feature #6515: array.c: added method that verifies if an Array is part of another
Sorry but i'm not sure what you are asking. In other words you really think it's easier to do this:
a = [1,2,3,4,5,6,7].to_set
=> #<Set: {1, 2, 3, 4, 5, 6, 7}>
b = [1,2,3].to_set
=> #<Set: {1, 2, 3}>
b.subset? a
=> true
...
lellisga (Li Ellis Galardo)

06/02/2012

03:00 AM Ruby Feature #6515: array.c: added method that verifies if an Array is part of another
@nobu you are right. I'll change the method to (arry1 - arry2).empty?. About the method functionally I thought of it like the subset method from Set. That's why it doesn't care about the order. lellisga (Li Ellis Galardo)

05/30/2012

11:32 PM Ruby Feature #6515: array.c: added method that verifies if an Array is part of another
I'm adding a new patch that fixed a typo. I also did some refactor to the code.
lellisga (Li Ellis Galardo)
02:02 PM Ruby Feature #6515: array.c: added method that verifies if an Array is part of another
Sorry, I wasn;t sure what to upload. Please remove them.
nobu (Nobuyoshi Nakada) wrote:
> Why attaching whole files?
lellisga (Li Ellis Galardo)
12:14 PM Ruby Feature #6515 (Feedback): array.c: added method that verifies if an Array is part of another
This method is like the include? method but instead of receiving a value and check if the array has it, it receives an array an check if it's part of another one.
https://github.com/ruby/ruby/pull/127
lellisga (Li Ellis Galardo)

Also available in: Atom