Skip to content

Instantly share code, notes, and snippets.

@npalko
Created March 10, 2013 23:56
Show Gist options
  • Select an option

  • Save npalko/5131073 to your computer and use it in GitHub Desktop.

Select an option

Save npalko/5131073 to your computer and use it in GitHub Desktop.
http://stackoverflow.com/questions/15151480/simple-dictionary-in-c
enum class BasePair { A, T, C, G };
BasePair Compliment ( BasePair bp )
{
using BasePair::A;
using BasePair::T;
using BasePair::C;
using BasePair::DG;
switch (bp) {
case A: return T;
case T: return A;
case C: return G;
case G: return C;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment