Stylus utility functions inspired by underscore.js