Stories
Slash Boxes
Comments
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

use Perl Log In

Log In

[ Create a new account ]

djberg96 (2603)

djberg96
  (email not shown publicly)

Journal of djberg96 (2603)

Friday July 26, 2002
07:49 PM

Set::Array - more stuff

[ #6677 ]
I got an email today requesting a way to retain duplicate entries in a symmetric difference operation for my Set::Array module. I actually had to go to mathworld to settle a minor debate regarding whether or not duplicates should be included by default. I wasn't sure. Most other people I chatted with weren't sure either. The answer was only unique values, btw.

Anyay, I have to decide if I want to add "bag" equivalents for some of the other set operations or not. For now, I'm inclined to just write a "duplicates()" method and let the programmer deal with it from there.

Oh, I also discovered some inconsistencies with some of the set operations in void context. Damn.

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
 Full
 Abbreviated
 Hidden
More | Login | Reply
Loading... please wait.