My personal functional implementation of underscore functions