Hash-Table-Based Multiple Arguments Replacement
    Nordlöw via Digitalmars-d-learn 
    digitalmars-d-learn at puremagic.com
       
    Sat Oct 10 09:49:55 PDT 2015
    
    
  
On Saturday, 10 October 2015 at 16:42:52 UTC, Nordlöw wrote:
> Found it:
>
> http://dlang.org/phobos/std_algorithm_comparison.html#predSwitch
>
> An alias would be perhaps be motivated to make newcomers easier 
> grap that this can be used for whole replacements.
Ahh, but this doesn't use a hash-table because it doesn't support 
taking its arguments as CT-params...so that doesn't qualify.
Maybe we should add a new CT-param-only overload for `predSwitch` 
similar to `among`?
Destroy!
    
    
More information about the Digitalmars-d-learn
mailing list