diff options
Diffstat (limited to 'std/iter.zc')
| -rw-r--r-- | std/iter.zc | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/std/iter.zc b/std/iter.zc new file mode 100644 index 0000000..a4fdb59 --- /dev/null +++ b/std/iter.zc @@ -0,0 +1,9 @@ +import "./option.zc" + +trait Iterator<T> { + fn next(self) -> Option<T>; +} + +trait Iterable<T> { + fn iterator(self) -> Iterator<T>; +} |
