Created
March 10, 2013 23:56
-
-
Save npalko/5131073 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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