ListTools - Maple Help

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : Programming : Data Types : Tables, lists, and sets : ListTools Package : ListTools/FlattenOnce

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

L:=1,2,3,4,5,6

(1)

FlattenOnceL

1,2,3,4,5,6

(2)

L1,2,3,4,5,6

L:=1,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]

 


Download Help Document

Was this information helpful?



Please add your Comment (Optional)
E-mail Address (Optional)
What is ? This question helps us to combat spam