Top "Flatten" questions

Flattening refers to either reducing a multi-dimensional array to a single dimension or to reducing a class and class methods to handle based function calls.

Flatten a javascript object to pass as querystring

I have a javascript object that I need to flatten into a string so that I can pass as querystring, …

javascript jquery javascript-objects flatten
How to deserialize JSON into flat, Map-like structure?

Have in mind that the JSON structure is not known before hand i.e. it is completely arbitrary, we only …

java json jackson flatten
Is it possible to flatten MongoDB result query?

I have a deeply nested collection in my MongoDB collection. When I run the following query: db.countries.findOne({},{'data.…

mongodb mongodb-query flatten
How to flatten a pandas dataframe with some columns as json?

I have a dataframe df that loads data from a database. Most of the columns are json strings while some …

python json pandas dataframe flatten
How to Serialize Binary Tree

I went to an interview today where I was asked to serialize a binary tree. I implemented an array-based approach …

serialization tree binary-tree flatten binary-search-tree
Scala - convert List of Lists into a single List: List[List[A]] to List[A]

What's the best way to convert a List of Lists in scala (2.9)? I have a list: List[List[A]] which …

scala list recursion flatten
Flatten a list in Prolog

I've only been working with Prolog for a couple days. I understand some things but this is really confusing me. …

list prolog flatten dcg difference-lists
Flatten multidimensional array concatenating keys

Possible Duplicate: PHP convert nested array to single array while concatenating keys? Get array's key recursively and create underscore seperated …

php arrays multidimensional-array flatten
Convert 2 dimensional array

What is selectMany.ToArray() method? Is it a built in method in C#? I need to convert two dimensional array …

c# .net multidimensional-array data-structures flatten
Python list comprehension, unpacking and multiple operations

I want to unpack the tuples I create by doing the following so he the result is just one simple …

python tuples list-comprehension flatten