Prototype implementation of underscore functions.