Skip to content

Instantly share code, notes, and snippets.

@nagisa
Created September 7, 2015 11:50
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 nagisa/3678f5e5ba31024435ae to your computer and use it in GitHub Desktop.
Save nagisa/3678f5e5ba31024435ae to your computer and use it in GitHub Desktop.
trait Monoid<T> {
let zero : T;
// Arbitrary 2 argument functions may be used as binary operators
let `+` : T → T → T;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment