Giter Club home page Giter Club logo

stack's Introduction

stack

Simple Python Stack & more advanced stack

Stack

  • init
  • push ( item ) - add item to top of the stack
  • pop - remove last item off the stack
  • peek - return last item on the stack
  • empty - return True or False
  • count - return number of items in the stack
  • stack - return the stack object
  • dump - clear the stack

Stack2

  • init
  • push ( item ) - add item to top of the stack
  • _ _ setitem _ _ - add item at any point
  • pop - remove last item off the stack
  • _ _ getitem _ _ - remove any item
  • peek - return last item on the stack
  • _ _ contains _ _ - check if any item is on the stack
  • empty - return True or False
  • count - return number of items in the stack
  • _ _ len _ _ - return the amount of items on the stack
  • stack - return the stack object
  • dump - clear the stack
  • _ _ iter _ _ - iterate over the stack

Stack3

  • _ _ init _ _
  • _ _ call_ _
  • push
  • _ _ add_ _
  • _ _ setitem _ _
  • pop
  • _ _ sub _ _
  • _ _ del _ _
  • _ _ getitem _ _
  • peek
  • _ _ contains _ _
  • empty
  • len
  • _ _ len _ _
  • stack
  • _ _ repr _ _
  • _ _ str _ _
  • dump
  • iter
  • _ _ iter _ _
  • reverse
  • _ _ reversed _ _
  • _ _ eq _ _
  • _ _ lt _ _
  • _ _ le _ _
  • _ _ gt _ _
  • _ _ ge _ _
  • _ _ ne _ _

stack's People

Contributors

blixuk avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.