which member in ElementType!Range to find difference over
unary transformation or binary comparator
the range to inspect
ranges or single values to exclude
SeeAlso: difference
1 struct A { 2 int value; 3 } 4 // with normal difference 5 assert([A(1), A(2), A(3)].difference!((a, b) => a.value < b.value)([A(2), A(3)]).equal([A(1)])); 6 7 // by using the By() version 8 assert([A(1), A(2), A(3)].differenceBy!"value"([A(2), A(3)]).equal([A(1)]));
0.0.1
Same as difference except you can make it operatete on a publicly accessible member of ElementType!Range