Paste: type class

Author: j
Mode: text
Date: Sun, 10 Apr 2011 17:32:20
Plain Text |
class SequenceType('T) {
    iterator(x:'T) : 'I in IteratorType;
}

instance SequenceType(Array['T, 'n]) {
    iterator(x) = CoordinateRange(begin(x), begin(x) + 'n);
}

foo(x in SequenceType) { }

New Annotation

Summary:
Author:
Mode:
Body: