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).

Difference between map and collect in Ruby?

I have Googled this and got patchy / contradictory opinions - is there actually any difference between doing a map and …

ruby arrays map collect
Extract a dplyr tbl column as a vector

Is there a more succinct way to get one column of a dplyr tbl as a vector, from a tbl …

r dplyr lazy-evaluation collect
pyspark collect_set or collect_list with groupby

How can I use collect_set or collect_list on a dataframe after groupby. for example: df.groupby('key').collect_…

list group-by set pyspark collect
what's different between each and collect method in Ruby

From this code I don't know the difference between the two methods, collect and each. a = ["L","Z","J"].collect{|…

ruby each collect
Collect values from an array of hashes

I have a data structure in the following format: data_hash = [ { price: 1, count: 3 }, { price: 2, count: 3 }, { price: 3, count: 3 } ] Is there an …

ruby arrays hash collect
Scala Partition/Collect Usage

Is it possible to use one call to collect to make 2 new lists? If not, how can I do this …

list scala collect
How to tweak LISTAGG to support more than 4000 character in select query?

Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - 64bit Production. I have a table in the below format. Name Department Johny …

casting oracle11g collect
How to use collect call in Java 8?

Lets say we have this boring piece of code that we all had to use: ArrayList<Long> ids = …

java java-8 java-stream collect
Static context cannot access non-static in Collectors

I have group of students. First I want to group them by the marks. Then I want to further group …

java java-8 java-stream method-reference collect
Map an array modifying only elements matching a certain condition

In Ruby, what is the most expressive way to map an array in such a way that certain elements are …

ruby map iteration collect