Swap front for char[] input ranges

RazvanN via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Wed Dec 21 01:23:07 PST 2016


On Monday, 19 December 2016 at 20:26:26 UTC, Ali Çehreli wrote:
> On 12/19/2016 06:09 AM, RazvanN wrote:
> > [...]
> wrote:
> >> [...]
> InputRanges.
> >> [...]
> following
> > [...]
> char[]
> > [...]
> function, so
> > [...]
> http://dlang.org/phobos/std_algorithm_mutation.html#bringToFront
>
> [...]

No need to mention it. It is an honor to be able contribute
to this great language.
>
> [...]

That is right, I am working on that particular bug. After talking 
with AndreiA,
I submitted this PR [1]. It treats the case of char[], but I am 
not really sure how the constraints should be applied to the 
function since it seems there are
a lot of combinations (especially if char[] is supported).

[1] https://github.com/dlang/phobos/pull/4970


More information about the Digitalmars-d-learn mailing list