comparators: remove function literals for builtin comparators

These function literals are copied verbatim into the godoc, which just
makes it ugly.
Merge pull request #2 from dgryski/remove-function-literals

comparators: remove function literals for builtin comparators