> > Arrays are ordered. > Hashes are not. > Neither are sets. > > Arrays can have repetitions. > Hashes can not. > Neither can sets. > > etc. > > --tom Yes, this is true, but the natural syntax, for me, to manipulate sets, is the one of arrays. It is not natural to write : %my_fruit_set = ( 1 => 'orange', 2 => 'lemon' ); but it is natural to write : @my_fruit_set = ( 'orange', 'lemon' ); I don't want to have to deal with keys of hashes because my set elements don't care about them ! so, I want new functions to manipulate arrays. then, when manipulating arrays, without speaking about sets, you often need in/union/intersection functions, even if arrays have duplicated elements or if they are ordered. Well, in fact I don't understand why you don't think that union/intersection/difference are not usefull functions for arrays ? Gael,
- RFC 179 (v1) More functions from set theory to manipul... Perl6 RFC Librarian
- Re: RFC 179 (v1) More functions from set theory t... Tom Christiansen
- Re: RFC 179 (v1) More functions from set theory t... Michael Maraist
- Re: RFC 179 (v1) More functions from set theo... Tom Christiansen
- Re: RFC 179 (v1) More functions from set theo... Gael Pegliasco
- Re: RFC 179 (v1) More functions from set ... Jeremy Howard
- Re: RFC 179 (v1) More functions from ... Gael Pegliasco
- Re: RFC 179 (v1) More functions ... Tom Christiansen
- Re: RFC 179 (v1) More functi... Tom Christiansen
- Re: RFC 179 (v1) More fu... Gael Pegliasco
- Re: RFC 179 (v1) More fu... Buddha Buck
- Re: RFC 179 (v1) More fu... John Porter
- Re: RFC 179 (v1) More fu... Tom Christiansen
- proto-RFC: keys(HASH) as... John Porter
- Re: proto-RFC: keys(HASH... Tom Christiansen
- Re: proto-RFC: keys(HASH... Bart Lateur
- Re: proto-RFC: keys(HASH... John Porter
- Re: RFC 179 (v1) More fu... Johan Vromans
- Re: RFC 179 (v1) More fu... Gael Pegliasco
- Re: RFC 179 (v1) More fu... Tom Christiansen