Enumerate iterator types

This commit is contained in:
kortschak 2014-07-03 09:57:31 +09:30
parent 1f67913ed9
commit cd46452b63
23 changed files with 145 additions and 68 deletions

View file

@ -99,9 +99,7 @@ func (it *Fixed) DebugString(indent int) string {
}
// Register this iterator as a Fixed iterator.
func (it *Fixed) Type() string {
return "fixed"
}
func (it *Fixed) Type() graph.Type { return graph.Fixed }
// Check if the passed value is equal to one of the values stored in the iterator.
func (it *Fixed) Check(v graph.Value) bool {