LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

pop

Remove top value from stack

TLDR

Pop value from stack (Forth)
$ pop
copy
Pop in dc calculator
$ echo "1 2 3 R p" | dc
copy

SYNOPSIS

pop [options]

DESCRIPTION

pop removes and discards the top value from a stack. It is a fundamental operation in stack-based programming languages and calculators like Forth and dc.In shell contexts, the related command popd performs a similar operation on the shell's directory stack. The pop operation is the complement of push.

PARAMETERS

Stack operation command.

INSTALL

sudo zypper install pop
copy
brew install pop
copy
nix profile install nixpkgs#pop
copy

CAVEATS

Context-dependent. Part of stack-based languages.

HISTORY

pop is a fundamental stack operation in computer science.

SEE ALSO

dc(1), forth(1), pushd(1)

Braincup
Open source brain training for math, memory and focus
Braincup mini-games
41 mini-games · Apache-2.0
No ads · No tracking
Play in browser
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid
276 stars
From the maker of Linux Command Library
Copied to clipboard
Braincup
Open source brain training for math, memory and focus. 41 mini-games, from mental arithmetic to Sudoku, N-Back and Solo Chess.
Apache-2.0 licensed · No ads · No tracking · No account
From the maker of Linux Command Library
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid