dalicious.range

Some additional range functions.

Members

Functions

arrayChunks
auto arrayChunks(Source range, in 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.

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(in Types values)

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

Templates

Chunks
template Chunks(size_t chunkSize, T...)

Split a list of aliases into chunks.

Comparator
template Comparator(pred...)
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>