compactBy

Compacts a range by a publicly visible member variable or property of ElemntType!Range

compactBy
(
string member
alias pred = null
Range
)
(
Range range
)
if (
from!"std.range".isInputRange!Range
)

Parameters

member

which member in ElementType!Range to compact by

pred

a unary predicate that returns true if value should be compacted

range
Type: Range

an input range

Return Value

Type: auto

compacted range

Meta

Since

0.0.1