[Issue 13595] Extend std.algorithm.groupBy to support non-equivalence relations
    via Digitalmars-d-bugs 
    digitalmars-d-bugs at puremagic.com
       
    Tue Nov  4 11:21:22 PST 2014
    
    
  
https://issues.dlang.org/show_bug.cgi?id=13595
--- Comment #4 from hsteoh at quickfur.ath.cx ---
P.S. Due to the extra performance overhead in evaluating the predicate for
every adjacent pair of elements (and also additional logic to ensure
correctness), groupBy now takes a compile-time parameter that can be used to
get the original performance when the predicate is an equivalence relation.
This way we have the best of both worlds. :-)
--
    
    
More information about the Digitalmars-d-bugs
mailing list