std.range.interfaces : InputRange moveFront
Ali Çehreli
acehreli at yahoo.com
Thu Nov 30 19:23:40 UTC 2017
On 11/30/2017 07:31 AM, Tony wrote:
> On Thursday, 30 November 2017 at 09:50:37 UTC, Tony wrote:
>> On Thursday, 30 November 2017 at 09:47:14 UTC, Tony wrote:
>>
>>> Thanks for the reply. Probably just missing it, but in poking around
>>> dlang.org (Language Reference and Library Reference) I am having
>>> trouble finding out about the move(), front() and moveFront()
>>> functions, as is used here on a dynamic array.
>>
>> That should just be front() and moveFront() used here. I ran across
>> move() in looking at the standard library for the definitions of the
>> other two.
>
> Found a move() here:
> https://dlang.org/library/std/algorithm/mutation/move.html
> Function std.algorithm.mutation.move
I don't know why it isn't listed at the top of the page but front() for
arrays is here:
https://dlang.org/phobos/std_range_primitives.html#.front
And moveFront():
https://dlang.org/phobos/std_range_primitives.html#.moveFront
Ali
More information about the Digitalmars-d-learn
mailing list