flatten -package:hmatrix

Returns the elements of a tree in pre-order.
flatten == Data.Foldable.toList
a
/ \    => [a,b,c]
b   c

Examples

flatten (Node 1 [Node 2 [], Node 3 []]) == [1,2,3]
Create a Bundle of values from a Bundle of streamable things
Create a Bundle of values from a Bundle of streamable things
Turn a Conc into a Flat. Note that thanks to the ugliness of empty, this may fail, e.g. flatten Empty.
Flattens nested inlines. Extracts nested inlines and goes through them either collapsing them in the outer inline container or pulling them out of it
alias for: fmap toResponse turns m a into m Response using toResponse.
main = simpleHTTP nullConf $ flatten $ do return "flatten me."
Flatten a matrix of matrices. All sub matrices must have same dimensions This criteria is not checked.
scale a vector by a scalar
Reverse to collectCoincident: Turn each body into a separate event.
xs  ==  flatten (collectCoincident xs)
O(1) - Reduce a multi-dimensional array into a flat vector
O(1) make a rank 1 array from an arbitrary shape. It has the property that 'reshape (0, size a - 1) a == flatten a'.
The document flatten d will flatten d to one line.
An interpreter for OccurrencesBuilder. WARNING: There can be lots of sharing between the generated OccursWhere entries. Traversing all of these entries could be expensive. (See computeEdges for an example.)
Map array-valued fields to a set of individual data objects, one per array entry. See also flattenAs.
Default algorithm is O((m*n) * O(unsafeIndex)).