Close
Close window
FlattenOnce - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Mozilla Firefox.
Maplesoft logo
Maplesoft logo

Online Help

All Products Maple MapleSim


[フレーム] [フレーム]

ListTools

FlattenOnce

flatten a (possible nested) list once

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)


Download Help Document

AltStyle によって変換されたページ (->オリジナル) /