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

Online Help

All Products    Maple    MapleSim


type/foreign

check for an object of type foreign

 

Calling Sequence

Parameters

Description

Subtypes

Examples

Compatibility

Calling Sequence

type(x, foreign)

Parameters

x

-

any expression

Description

• 

The type(x, foreign) calling sequence returns true if x is a so-called FOREIGN DAG. See the appendix to the programming manual for more details. In the C API functions, FOREIGN DAGs are called Maple Pointers.

Subtypes

• 

type/python

Examples

Numbers and algebraic expressions are not FOREIGN DAGs.

type1,foreign

false

(1)

typesinx,foreign

false

(2)

The Python package uses FOREIGN DAGs to represent Python objects that aren't automatically converted to Maple equivalents.

dictionaryPython:-EvalString{}

dictionary<Python object: {}>

(3)

typedictionary&comma;foreign

true

(4)

Compatibility

• 

The type/foreign command was introduced in Maple 2022.

• 

For more information on Maple 2022 changes, see Updates in Maple 2022.

See Also

type