ListTools - Maple Help

Online Help

All Products    Maple    MapleSim


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

ListTools

  

Split

  

split a list into an expression sequence of lists

 

Calling Sequence

Parameters

Description

Examples

Calling Sequence

Split(f, L, opts, ...)

Split[N](f, opt[1], ..., opt[N-1], L, opts, ...)

Parameters

L

-

list

f

-

procedure

N

-

positive integer

opts

-

(optional) options to procedure f

Description

• 

The Split(f, L) function splits list L at positions where procedure f returns true. The value of procedure f is determined by the expression fx evaluated for each element x of list L.

  

The Split(f, L, opts) function performs in a similar manner, except that the value of procedure f is determined by the expression fx,opts.

• 

If Split is indexed by a positive integer N, the expression fopt1,...,optN1,x,opts is evaluated for each list element x.

Examples

withListTools:

La,,,bc,d,e,,,f

L:=a,,,bc,d,e,,,f

(1)

Split`=`,L,,

a,bc,d,e,f

(2)

Digits5

Digits:=5

(3)

Split`>`,seqsin2.0x,x=1..12,12

,0.75680,,0.54402,0.53657,,0.75099,,0.90558

(4)

Split[2]verify,12,seqsin2x,x=1..12,less_than

,sin4,,sin10,sin12,,sin18,,sin24

(5)

See Also

list

ListTools

map

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