Skip to content

Instantly share code, notes, and snippets.

@gilligan
Created May 19, 2015 16:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gilligan/aa359b36b0e0571747b5 to your computer and use it in GitHub Desktop.
Save gilligan/aa359b36b0e0571747b5 to your computer and use it in GitHub Desktop.
var buildMap = function(env) {
return R.reduce(λ(obj, elem) {
var kv = R.split(':', elem);
var key = kv[0];
var val = kv[1];
obj[key] = val;
return obj;
}, {}, env);
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment