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

\begin{Mhelppage}{Border2Part}{V. Prosper}%
  \begin{MInfo}
    \eng{partition associated to a given border}
  \end{MInfo}
  
  \MDeclareOption{\alphabet}{alphabet}

  \begin{MCalls}
    \Mcall{\Mpar{border}\Mopt{,\alphabet=m}}
  \end{MCalls}
  
  \begin{MParameters}
    \param{border}
    \eng{a border} 
    \param{m}
    \eng{returns the same, \Mmath{m[1]}{m_1} denoting
      horizontal steps, \Mmath{m[2]}{m_2} vertical ones}
  \end{MParameters}

  \begin{MIntro}
    \eng{The {\Mthis} function gives the partition associated to the
      border.
      
      A border delimits the diagram of a partition.
      
      The border is a list of 0 and 1, 0 denoting an horizontal step
      of the border of the diagram, 1 a vertical one.
      }
  \end{MIntro}

\begin{MExample}{ex1}
\begin{Mexin}
muEC::PART::Border2Part( [0,1,0,1,0,0,1,1,0,0,1] );
\end{Mexin}
\begin{Mexout}
                        [6, 4, 4, 2, 1]
\end{Mexout}
\begin{Mexin}
muEC::PART::Border2Part( [a,b,a,b,a,a,b,b,a,a,b], alphabet=[a,b] );
\end{Mexin}
\begin{Mexout}
                        [6, 4, 4, 2, 1]
\end{Mexout}
\end{MExample}

\MRelatedFunctions{Part2Border,Part2Diagonal,Part2Conjugate,Part2Mat,TYP::IsBorder,TYP::IsPart}
\end{Mhelppage}
