% $Date: 2003/09/15 16:37:46 $ $Author: nthiery $ $Revision: 1.1.1.1 $

\begin{Mhelppage}{IsBorder}%
  {V. Prosper}%
  \begin{MInfo}
    \eng{tests whether the argument is a border of a partition}
  \end{MInfo}
  

\begin{MCalls}
\Mcall{expr}
\end{MCalls}

\begin{MParameters}
  \param{expr}
  \eng{any expression}
\end{MParameters}

\begin{MIntro}
  \eng{
The {\Mthis} function tests whether \Mex{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).

}
\end{MIntro}

\begin{MExample}{ex1}
\begin{Mexin}
muEC::TYP::IsBorder( [0,1,0] );
\end{Mexin}
\begin{Mexout}
                             FALSE
\end{Mexout}
\begin{Mexin}
muEC::TYP::IsBorder( [0,1,0,0,1,1] );
\end{Mexin}
\begin{Mexout}
                             TRUE
\end{Mexout}
\begin{Mexin}
muEC::TYP::IsBorder( [a,b,a,a,b,b], alphabet=[a,b] );
\end{Mexin}
\begin{Mexout}
                             TRUE
\end{Mexout}
\end{MExample}

\MRelatedFunctions{IsPart,IsDiagonal}
\end{Mhelppage}
