[Issue 6718] "nWayUnion" => "nWayMerge", plus true nWayUnion
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Mon Jul 17 05:10:26 PDT 2017
https://issues.dlang.org/show_bug.cgi?id=6718
--- Comment #12 from RazvanN <razvan.nitu1305 at gmail.com> ---
(In reply to Andrei Alexandrescu from comment #11)
> >Maybe we should also rename setIntersection to multiwayIntersection
>
> setIntersection has two inputs. "multiwayIntersection" would have multiple
> inputs (a range of ranges) and would be a distinct function with important
> uses and its own theory and practice
> (http://www.cs.toronto.edu/~tl/papers/wea06.pdf is a good overview).
If I understand correctly, setIntersection is going to do a bags intersection
for just 2 ranges, while multiwayIntersection is going to be a generalization
of set intersection (i.e. it will still do bags intersection)
--
More information about the Digitalmars-d-bugs
mailing list