Created
January 10, 2010 20:13
-
-
Save lsparrish/273738 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
( >last and expose ) | |
{{ | |
: tod ( -a ) last @ ; | |
: nod ( -a ) tod @ ; | |
: after ( a-a ) last repeat @ 2dup @ =if nip ;then again ; | |
: remove ( a- ) dup @ swap after ! ; | |
: replace ( a- ) tod over ! last ! ; | |
---reveal--- | |
: >last ( a- ) dup remove replace ; | |
: expose ( "- ) ' drop which @ >last ; | |
}} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment