Top "Enumerable" questions

"enumerable" refers to an ordering scheme that enables items in a set, sequence or collection to be readily addressed or traversed.

How can I make DataTable enumerable?

I cannot use AsEnumerable() on DataTable, I'm using C# 3 but I'm just targeting 2.0 framework (LINQ capability is courtesy of LINQBridge). …

c# ado.net datatable .net-2.0 enumerable
generic Enumeration to Iterable converter

HttpServletRequest is using a lot of java.util.Enumeration. I would like to use them in for-each, so i need …

java collections open-source enumerable
Ruby array of hash. group_by and modify in one line

I have an array of hashes, something like [ {:type=>"Meat", :name=>"one"}, {:type=>"Meat", :name=>"two"}, {:…

ruby-on-rails ruby hash enumerable
Passing array to function that takes either params object[] or IEnumerable<T>

I want to pass an array of custom objects to a function like String.Join which has the following signatures: …

c# arrays string overloading enumerable
Random array using LINQ and C#

I was reading an article on MSDN Magazine about using the Enumerable class in LINQ to generate a random array. …

c# vb.net linq enumerable
Ruby block taking array or multiple parameters

Today I was surprised to find ruby automatically find the values of an array given as a block parameter. For …

ruby block enumerable
Common Ancestor to Java Array and List

In .NET, both array and list have Enumerable as ancestor, so a method that accept Enumerable as an argument can …

java enumerable
Ruby longest word in array

I built this method to find the longest word in an array, but I'm wondering if there's a better way …

ruby enumerable inject
Idiomatic Ruby filter for nil-or-empty?

I'm looking for a more idiomatic way to filter out nil-or-empty elements of an array. I have many methods of …

ruby idioms enumerable
Why is Enumerable#each_with_object deprecated?

According to APIdock, the Ruby method Enumerable#each_with_object is deprecated. Unless it's mistaken (saying "deprecated on the latest …

ruby enumerable