Created
February 11, 2016 00:58
-
-
Save def-/810ac9c2ee582a94f81b 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
| type | |
| Container[T] = concept c | |
| c.len is Ordinal | |
| items(c) is T | |
| for value in c: | |
| type(value) is T | |
| proc foo(x: Container[int]) = | |
| for item in x: | |
| echo item | |
| foo(@[1,2,3,4]) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment