Created
August 29, 2011 19:00
-
-
Save zah/1179124 to your computer and use it in GitHub Desktop.
This file contains 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
proc myTypeMapper(x: int) : MegaInt | |
proc myTypeMapper(x: float) : SmartFloat | |
proc MappedTupleType[T, U](tp: tuple[T, U]) : tuple[ | |
type(myTypeMapper (valueOf[T]())), | |
type(myTypeMapper (valueOf[U]())), | |
] | |
proc MappedTupleType[T](tp: tuple[T]) : tuple[ | |
type(myTypeMapper (valueOf[T]())) | |
] | |
var transformedTuple : type(MappedTupleType[tuple[int, float]]) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment