On Saturday, May 27, 2017 at 2:15:40 PM UTC-5, ad...@simple.gopher wrote:
> Hey nice! Seems to also work with 'ff'[1] forth:
>
> % echo ": quad >r swap rot r@ * + r> * + ; 2 7 9 3 quad . cr bye" | ff
> ok
> 48
Neat, don't think I've seen this one.
README:
`2nip ( x y -- y )`
Drops the 2nd item on the stack.
README (later):
2nip ( x y z -- z )
core.f:
: 2nip ( x y z q -- z q ) rot drop rot drop ;
At least the implementation does what I'd expect :p
>
> Thanks ; it was probably a very novice question..
>
don't sweat it. First the code in the book is rotting a bit and this
is a natural question to have about it. Second, there aren't so many
novice questions around here that people are having to ask for
directions to the loony threads.