Skip to content

Instantly share code, notes, and snippets.

@nilium
Created January 6, 2010 19:25
Show Gist options
  • Select an option

  • Save nilium/270551 to your computer and use it in GitHub Desktop.

Select an option

Save nilium/270551 to your computer and use it in GitHub Desktop.
Strict
Type AbstractEnumerator Abstract
Method NextObject:Object() Abstract
Method HasNext:Int() Abstract
End Type
Type List
Method ObjectEnumerator:AbstractEnumerator()
Type Enumerator Extends AbstractEnumerator
Method NextObject:Object()
Return Null
End Method
Method HasNext:Int()
Return False
End Method
End Type
Return New Enumerator
End Method
End Type
For Local i:Object = EachIn New List
Next
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment