title: Swift equivalent for MIN and MAX macros
body: <p>In C / Objective-C it is possible to find the minimum and maximum value between two numbers using MIN and MAX macros. Swift doesn't support macros and it seems that there are no equivalents in the language / base library. Should one go with a custom solution, maybe based on generics like this <a href="http://www.cplusplus.com/reference/algorithm/max/" rel="noreferrer">one</a>?</p>