Skip to content

Instantly share code, notes, and snippets.

@andydude
Last active August 29, 2015 14:11
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 andydude/573d793a4de357a81d2b to your computer and use it in GitHub Desktop.
Save andydude/573d793a4de357a81d2b to your computer and use it in GitHub Desktop.
trait Mappable
{
type A;
type B;
type M<A> where M<A> = Self;
type M<B>;
fn map<A, B>(self, f: A -> B) -> M<B>;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment