Re: [stack] Functional Forth?

"Chris Double" <[email protected]>
Newsgroups gmane.comp.lang.concatenative
Message-ID <[email protected]>
On 9/20/07, William Tanksley, Jr <[email protected]> wrote:
> http://wiki.forthfreak.net/index.cgi?FunForth
>
>  Functional Forth. Written in a few lines of Forth. Speaks for itself.
>  I didn't know that was possible.

That's pretty neat. With a few changes  to make it compatible with 4p
you can write some very Joy like code:

C{ dup * } { 1 2 3 4 } lmap .list
  => { 1 4 9 16 }

4p is a forth with some interesting control words:

http://maschenwerk.de/4p/control-flow.txt

Chris.
-- 
http://www.bluishcoder.co.nz
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.