Skip to content

Instantly share code, notes, and snippets.

@jrsinclair
Created December 5, 2018 06:50
Show Gist options
  • Save jrsinclair/01d1fcdbc9f256aa40d89aa4d22eb7c9 to your computer and use it in GitHub Desktop.
Save jrsinclair/01d1fcdbc9f256aa40d89aa4d22eb7c9 to your computer and use it in GitHub Desktop.
function processRow(headerFields, row) {
const fieldsEither = right(row).map(splitFields);
const rowObj = fieldsEither.chain(zipRow(headerFields));
const rowObjWithDate = rowObj.chain(addDateStr);
// Slowly getting better... but what do we return?
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment