Skip to content

Instantly share code, notes, and snippets.

@jonifreeman
Created April 17, 2013 14:55
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save jonifreeman/5404963 to your computer and use it in GitHub Desktop.
Negroni in do-notation
assemble = function(g, v, a) {
return $do {
gin <- g
vermouth <- v
amaro <- a
return new Negroni(gin, vermouth, amaro)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment