dalicious.range

Some additional range functions.

Members

Classes

WrapLinesImpl
class WrapLinesImpl(R)
Undocumented in source.

Functions

arrayChunks
auto arrayChunks(Source range, size_t chunkSize)

This range iterates over fixed-sized chunks of size chunkSize of a source range. Source must be an input range. chunkSize must be greater than zero.

evenSlices
auto evenSlices(Source range, size_t sliceCount)

Generate a range of num even-sized slices.

takeExactly
ElementType!R[n] takeExactly(R range)

Take exactly n element from range. Throws an exception if range has not enough elements.

tupleMap
auto tupleMap(Types values)

Return a tuple of fun applied to each value of tuple.

wrapLines
auto wrapLines(R output, size_t lineWidth)
Undocumented in source. Be warned that the author may not have intended to support it.

Templates

Chunk
template Chunk(T...)
Undocumented in source.
Chunks
template Chunks(size_t chunkSize, T...)

Split a list of aliases into chunks.

Comparator
template Comparator(pred...)
Undocumented in source.
chunks
template chunks(size_t chunkSize)

Generate a tuple of tuples of chunkSize.

Meta

License

Subject to the terms of the MIT license, as written in the included LICENSE file.

Authors

Arne Ludwig <arne.ludwig@posteo.de>