dalicious.algorithm.comparison

Some additional alogorithm functions.

Members

Functions

cmpLexicographically
int cmpLexicographically(T a, T b)

Compare a and b lexicographically by applying each fun to them. For unary functions compares fun(a) < fun(b).

orderLexicographically
bool orderLexicographically(T a, T b)

Order a and b lexicographically by applying each fun to them. For unary functions compares fun(a) < fun(b).

Templates

staticPredSwitch
template staticPredSwitch(T...)

Returns one of a collection of expressions based on the value of the switch expression.

Meta

License

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

Authors

Arne Ludwig <arne.ludwig@posteo.de>