Browse Source

Added AtEnd property to Map iterators.

Mark Sibly 7 years ago
parent
commit
02b65c60e5
1 changed files with 12 additions and 0 deletions
  1. 12 0
      modules/std/collections/map.monkey2

+ 12 - 0
modules/std/collections/map.monkey2

@@ -119,6 +119,10 @@ Class Map<K,V>
 	End
 	
 	Struct Iterator
+		
+		Property AtEnd:Bool()
+			Return _node=Null
+		End
 	
 		Property Valid:Bool()
 			Return _node
@@ -144,6 +148,10 @@ Class Map<K,V>
 	
 	Struct KeyIterator
 	
+		Property AtEnd:Bool()
+			Return _node=Null
+		End
+	
 		Property Valid:Bool()
 			Return _node
 		End
@@ -168,6 +176,10 @@ Class Map<K,V>
 	
 	Struct ValueIterator
 	
+		Property AtEnd:Bool()
+			Return _node=Null
+		End
+	
 		Property Valid:Bool()
 			Return _node
 		End