Proposal: takeFront and takeBack
Jonathan M Davis
jmdavisProg at gmx.com
Wed Jul 4 01:12:17 PDT 2012
On Wednesday, July 04, 2012 09:58:09 Roman D. Boiko wrote:
> On Wednesday, 4 July 2012 at 07:53:32 UTC, Roman D. Boiko wrote:
> > On Wednesday, 4 July 2012 at 07:40:55 UTC, monarch_dodra wrote:
> >> I'll propose "spendFront", which is pretty much the same
> >> thing, but is less loaded. I'm not entirely sure if it carries
> >> the meaning as well? I think it is a worth discussion.
> >
> > I'm not a native speaker, but I feel that "spend" would be a
> > wrong choice.
> >
> > fetchFront was proposed by Dmitry, which I like more than
> > spendFront, but slightly less than consumeFront.
>
> Another option might be "readFront". That's somewhere in the
> middle amond "take", "consume" and "fetch"...
Read does not imply that the element is removed from the range. Nor does
fetch. Consume does.
- Jonathan M Davis
More information about the Digitalmars-d
mailing list