ยง Kawaii implementation of x = min(x, y)

template <typename T>
inline void Mn(T &x, T y) { x > y && (x = y); }
Wrapping the thing into a template allows one to write code such as Mn(x, 10) to mean x = min(x, 10). This a nice pattern!