Created
March 10, 2014 11:31
-
-
Save zah/9463398 to your computer and use it in GitHub Desktop.
implicit generics, vector
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
type | |
V[T; I: static[int]] = array[0..I, T] | |
proc foo(x: V): V.T = | |
result = x[0] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment