Top "Collect" questions

Use this tag for questions related to the act of gathering/collecting/grouping data/results from several nodes/places/computers to one (or main) resource(s).

ruby using the "&:methodname" shortcut from array.map(&:methodname) for hash key strings rather than methodname

Most ruby developers know how to save a few keystrokes by doing something like this: array.map(&:methodname) rather …

ruby dictionary hash collect
Java stream collect to map with multiple keys

I thought I was getting pretty good at Java 8 streams, but then... I have a Foo interface: public interface Foo { …

java key java-stream collect
PHP Laravel 5.5 collections flatten and keep the integer keys?

I have the following array : $array = [ '2' => ['3' => ['56' => '2'], '6' => […

php laravel flatten collect
Java 8 stream join and return multiple values

I'm porting a piece of code from .NET to Java and stumbled upon a scenario where I want to use …

java dictionary java-8 java-stream collect
How can I use a named scope in my model against an array of items?

I know that I can do a query for recent books based on an array as in scope :recent_books, …

ruby-on-rails ruby select model collect
How to Use COLLECT with VARCHAR2 Oracle 10g

I'm trying to get the COLLECT function to work for me. I'm using 10g and therefore found that LISTAGG and …

sql oracle10g collect listagg
Java collect with lambda expression example

I was trying to convert this String r = ""; for ( Persona p : list ) { r += p.lastName; } To stream().filter.collect() form, …

java lambda java-stream collect
I want my memory back! How can I truly dispose a control?

I have an application I am making that creates a large number of windows controls (buttons and labels etc). They …

c# memory controls dispose collect