Quellcodebibliothek Statistik Leitseite products/sources/formale Sprachen/GAP/pkg/circle/doc/   (Algebra von RWTH Aachen Version 4.15.1©)  Datei vom 25.1.2023 mit Größe 316 B image not shown  

Quelle  _stack.py   Sprache: unbekannt

 
from typing import List, TypeVar

T = TypeVar("T")


class Stack(List[T]):
    """A small shim over builtin list."""

    @property
    def top(self) -> T:
        """Get top of stack."""
        return self[-1]

    def push(self, item: T) -> None:
        """Push an item on to the stack (append in stack nomenclature)."""
        self.append(item)

Messung V0.5
C=92 H=91 G=91

[ zur Elbe Produktseite wechseln0.12Quellennavigators  Analyse erneut starten  ]