<!-- This is an automatically generated file. -->
<Chapter Label="Chapter_Stacks">
<Heading>Stacks</Heading>
<P/>
A stack is a deque where items can be <C>Push</C>ed onto the stack, and
the top item can be <C>Pop</C>ped off the stack.
<P/>
Stacks are wrapped GAP plain lists.
<Section Label="Chapter_Stacks_Section_API">
<Heading>API</Heading>
<ManSection>
<Oper Arg="stack" Name="Peek" Label="for IsStack"/>
<Returns>object or <K>fail</K>
</Returns>
<Description>
Return the object at the top of <A>stack</A>. If <A>stack</A> is empty,
returns <K>fail</K>
</Description>
</ManSection>
<ManSection>
<Oper Arg="stack" Name="Pop" Label="for IsStack"/>
<Returns>object or <K>fail</K>
</Returns>
<Description>
Remove the top item from <A>stack</A> and return it.
If <A>stack</A> is empty, this function returns fail.
</Description>
</ManSection>
<ManSection>
<Attr Arg="arg" Name="Size" Label="for [IsStack]"/>
<Description>
Number of elements on <A>stack</A>
</Description>
</ManSection>
</Section>
</Chapter>
¤ Dauer der Verarbeitung: 0.24 Sekunden
(vorverarbeitet)
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung ist noch experimentell.