Reimplementation of the ramda library using lodash