range_ex

Extensions to std.range.

Public Imports

slicing
public import slicing;
Undocumented in source.

Members

Aliases

byItem
alias byItem = byPair
Undocumented in source.
isSortedRange
alias isSortedRange(R) = isInstanceOf!(SortedRange, R)
Undocumented in source.
items
alias items = pairs
Undocumented in source.
pullBack
alias pullBack = stealBack
Undocumented in source.
pullFront
alias pullFront = stealFront
Undocumented in source.
takeBack
alias takeBack = stealBack
Undocumented in source.
takeFront
alias takeFront = stealFront
Undocumented in source.

Enums

hasPureCopy
eponymoustemplate hasPureCopy(T)
Undocumented in source.
hasStealableElements
eponymoustemplate hasStealableElements(R)
Undocumented in source.

Functions

adjacentPairs
auto adjacentPairs(R r)
Undocumented in source. Be warned that the author may not have intended to support it.
adjacentTriples
auto adjacentTriples(R r)
Undocumented in source. Be warned that the author may not have intended to support it.
adjacentTuples
auto adjacentTuples(R r)

Return: Adjacent N-Tuples of r. TODO: Support ref return via zip for non-const case. TODO Use a ring buffer instead of copy? TODO Add a variant of adjacentTuples that return a static array instead? See also: http://forum.dlang.org/post/gkdqakdogqevwzntpgtu@forum.dlang.org

asTuple
auto asTuple(T[n] arr)

Return Static Array arr as a Tuple. See also: http://forum.dlang.org/post/gkdqakdogqevwzntpgtu@forum.dlang.org Check if std.conv.to() support conversion from Tn to std.typecons.Tuple(T, ...).

iotaOf
auto iotaOf(B begin, E end, S step)

Same as iota but with explicit conversion to type T. See also: http://forum.dlang.org/thread/mailman.955.1444358510.22025.digitalmars-d@puremagic.com?page=1

iotaOfExceptional
auto iotaOfExceptional(B begin, E end, S step)
Undocumented in source. Be warned that the author may not have intended to support it.
merge
auto merge(Rs rs)

Merge arguments with comparison.

pairs
auto pairs(Value[Key] aa)

Return Array of Key-Value Pairs of Associative Array aa. See also: https://github.com/D-Programming-Language/druntime/pull/574 See also: http://forum.dlang.org/thread/dxotcrutrlmszlidufcr@forum.dlang.org?page=2#post-fhkgitmifgnompkqiscd:40forum.dlang.org

rangify
auto rangify(T range)
Undocumented in source. Be warned that the author may not have intended to support it.
slidingSplitter
auto slidingSplitter(R data, size_t lower)
Undocumented in source. Be warned that the author may not have intended to support it.
slidingSplitter
auto slidingSplitter(R data, size_t lower, size_t upper)
Undocumented in source. Be warned that the author may not have intended to support it.
stealBack
auto stealBack(R r)

Steal back from r destructively and return it. See also: http://forum.dlang.org/thread/jkbhlezbcrufowxtthmy@forum.dlang.org#post-konhvblwbmpdrbeqhyuv:40forum.dlang.org See also: http://forum.dlang.org/thread/onibkzepudfisxtrigsi@forum.dlang.org#post-dafmzroxvaeejyxrkbon:40forum.dlang.org

stealFront
auto stealFront(R r)

Steal front from r destructively and return it. See also: http://forum.dlang.org/thread/jkbhlezbcrufowxtthmy@forum.dlang.org#post-konhvblwbmpdrbeqhyuv:40forum.dlang.org See also: http://forum.dlang.org/thread/onibkzepudfisxtrigsi@forum.dlang.org#post-dafmzroxvaeejyxrkbon:40forum.dlang.org

Imports

byPair (from std.array)
public import std.array : byPair;
Undocumented in source.

Structs

RingBuffer
struct RingBuffer(T)

Ring Buffer. See also: http://forum.dlang.org/thread/ltpaqk$2dav$1@digitalmars.com TODO inout

S
struct S
Undocumented in source.
SlidingSplitter
struct SlidingSplitter(Range)

Sliding Splitter. See also: http://forum.dlang.org/thread/dndicafxfubzmndehzux@forum.dlang.org See also: http://forum.dlang.org/thread/uzrbmjonrkixojzflbig@forum.dlang.org#epost-viwkavbmwouiquoqwntm:40forum.dlang.org

Templates

CommonElementType
template CommonElementType(Rs...)
Undocumented in source.
genTypeList
template genTypeList(T, size_t n)

See also: http://forum.dlang.org/post/gkdqakdogqevwzntpgtu@forum.dlang.org

iota
template iota(size_t from, size_t to)

Static Iota. TODO Add to Phobos.

Variables

haveCommonElementType
enum bool haveCommonElementType(Types...);
Undocumented in source.

Meta