Spreading D Arrays

Stefan Koch via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Thu Apr 6 11:27:28 PDT 2017


On Thursday, 6 April 2017 at 18:25:27 UTC, Russel Winder wrote:
> Many languages have a "spread" operator which takes a sequence 
> and creates positional argument to a (usually variadic but not 
> necessarily) function. Does D have such a facility?
>
> (Such a facility looks like it might be really, really useful 
> when
> writing unit-threaded tests.)

aliasSeqOf might be what you want :)


More information about the Digitalmars-d-learn mailing list