Skip to content

Instantly share code, notes, and snippets.

@zah
Created March 10, 2014 11:31
Show Gist options
  • Save zah/9463398 to your computer and use it in GitHub Desktop.
Save zah/9463398 to your computer and use it in GitHub Desktop.
implicit generics, vector
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