muEC::TYP::IsBorder – tests whether the argument is a border of a partition

The muEC::TYP::IsBorder function tests whether expr is a border list, 0 denoting an horizontal segment of the border, 1 a vertical one. Extremity segments shall not be included (i.e. 1 on the left top, 0 on the right bottom).

→ Examples

Call:

muEC::TYP::IsBorder(expr)

Parameters:

expr

any expression

Related Functions:

muEC::TYP::IsDiagonal, muEC::TYP::IsPart

Example 1:

muEC::TYP::IsBorder( [0,1,0] );

math

muEC::TYP::IsBorder( [0,1,0,0,1,1] );

math

muEC::TYP::IsBorder( [a,b,a,a,b,b], alphabet=[a,b] );

math