flatten

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]
Turn a Conc into a Flat. Note that thanks to the ugliness of empty, this may fail, e.g. flatten Empty.
Creates a vector by concatenation of rows. If the matrix is ColumnMajor, this operation requires a transpose.
>>> flatten (ident 3)
[1.0,0.0,0.0,0.0,1.0,0.0,0.0,0.0,1.0]
it :: (Num t, Element t) => Vector t
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)).
Turns a table-space vector into an integral index, given some table size vector. Yields Nothing for out-of-bounds queries
A specialized fold provided for convenience: flatten a tree into a list of leaves along with their d annotations, ignoring internal data values.