Plan 9 from Bell Labs’s /usr/web/sources/contrib/fgb/root/sys/src/cmd/4th/lib/stack.4th

Copyright © 2021 Plan 9 Foundation.
Distributed under the MIT License.
Download the Plan 9 distribution.


\ 4tH library - STACK - Copyright 2004,2007 J.L. Bezemer
\ You can redistribute this file and/or modify it under
\ the terms of the GNU General Public License

[UNDEFINED] STACK [IF]
: stack dup ! ;                        ( stack --)
: a@ @ @ ;                             ( stack -- n) 
: >a 1 cells over +! @ ! ;             ( n stack --) 
: a> dup a@ -1 cells rot +! ;          ( stack -- n)
: adepth dup @ swap - ;                ( stack -- n)
[THEN]

Bell Labs OSI certified Powered by Plan 9

(Return to Plan 9 Home Page)

Copyright © 2021 Plan 9 Foundation. All Rights Reserved.
Comments to webmaster@9p.io.