Top "Enumerator" questions

Enables enumeration of items in a collection.

C# Foreach statement does not contain public definition for GetEnumerator

I'm having a problem with a Windows Form application I'm building in C#. The error is stating "foreach statement cannot …

c# definition public enumerator
escaping the .each { } iteration early in Ruby

code: c = 0 items.each { |i| puts i.to_s # if c > 9 escape the each iteration early - and do …

ruby loops iterator enumerator
Ruby: undefined method `[]' for nil:NilClass when trying to get Enumerator on an Array of Hashes

I am trying to loop on an Array of Hashes. When I reach the point where I fetch the Enumerator …

arrays ruby hash enumerator
How can a formcollection be enumerated in ASP.NET MVC?

How can I enumerate through all the key/values of a FormCollection (system.web.mvc) in ASP.NET MVC?

asp.net-mvc enumerator
Is there a way to iterate through HttpServletRequest.getAttributeNames() more than once?

I'm trying to log the contents of the HttpServletRequest attributes collection. I need to do this when the servlet first …

java attributes enumeration servlets enumerator
Collection was modified, enumeration operation may not execute

I have multithreads application and i get this error ************** Exception Text ************** System.InvalidOperationException: Collection was modified; enumeration operation may not …

c# multithreading enumerator
C# - How to create an array from an enumerator

In C#, what's the most elegant way to create an array of objects, from an enumerator of objects? e.g. …

c# arrays enumerator
Next key in C# Dictionary

How to get an Enumerator to an item in a -Sorted- dictionary using key? Note:GetEnumerator() gets an Enumerator to …

c# .net dictionary enumerator
Scalaz iteratees: "Lifting" `EnumeratorT` to match `IterateeT` for a "bigger" monad

If I have an EnumeratorT and a corresponding IterateeT I can run them together: val en: EnumeratorT[String, Task] = EnumeratorT.…

scala monads scalaz enumerator iterate
`return` in Ruby Array#map

I have a method where I would like to decide what to return within a map function. I am aware …

arrays ruby return enumerator