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

Online Help

All Products    Maple    MapleSim


type/range

check for a range

 

Calling Sequence

Parameters

Description

Examples

Calling Sequence

type(expr, 'range')

type(expr, 'range'(typespec))

type(expr, '`..`')

type(expr, '`..`'(typespec))

Parameters

expr

-

any expression

typespec

-

any type expression

Description

• 

This function returns true if expr is of type range, and false otherwise.

• 

An expression of type range (also called type `..`) has two operands, the expression on the left-hand side and the expression on the right-hand side. These two operands are separated by an ellipsis (..) .

• 

The optional parameter typespec may be used to specify a type that the operands of expr must also satisfy. The typespec parameter may be used with either form (range or `..`) of the type.

Examples

typea..b,`..`

true

(1)

type1..4,`..`

true

(2)

typei..j,range

true

(3)

type1..n,range

true

(4)

type1..n,rangeposint

false

(5)

type1..10,rangeposint

true

(6)

See Also

plot/range

range

type

type/Range