FlattenOnce - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.

Online Help

All Products    Maple    MapleSim


ListTools

  

FlattenOnce

  

flatten a (possible nested) list once

 

Calling Sequence

Parameters

Description

Examples

Calling Sequence

FlattenOnce(L)

Parameters

L

-

list

Description

• 

The FlattenOnce(L) function converts any element in list L which are of type list to expression sequences.

  

Note: The procedure ListTools[FlattenOnce](L) is more efficient than a call to ListTools[Flatten](L, 1).

Examples

withListTools:

L1,2,3,4,5,6

L1,2,3,4,5,6

(1)

FlattenOnceL

1,2,3,4,5,6

(2)

L1,2,3,4,5,6

L1,2,3,4,5,6

(3)

FlattenOnceL

1,2,3,4,5,6

(4)

FlattenL

1,2,3,4,5,6

(5)

See Also

inline

list

ListTools

ListTools[Flatten]

seq

type[list]