Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.forth > #45475

Re: YC on Rosetta Code

From Lars Brinkhoff <lars.spam@nocrew.org>
Newsgroups comp.lang.forth
Subject Re: YC on Rosetta Code
Organization nocrew
References (1 earlier) <86fuwzzr49.fsf@molnjunk.nocrew.org> <22c78045-ac50-4104-9c58-0cc953405cc1@googlegroups.com> <6821ab9f-be45-4ab9-b608-d7e935b0693d@googlegroups.com> <861t8ixxhe.fsf@molnjunk.nocrew.org> <047d8aed-9025-4ae4-bc4d-515c51c5cae0@googlegroups.com>
Date 2016-02-12 08:31 +0100
Message-ID <86mvr6wfk2.fsf@molnjunk.nocrew.org> (permalink)

Show all headers | View raw


humptydumpty wrote:
> About using standard words, another version is just:
> : yc >R :noname R> compile, ]] IF recurse THEN ; [[ ;

The definition of the Y Combinator is that it operates on a function f1
and returns another function f2.  When f2 is called, it calls f1 with f2
as an argument.

I don't think you can define a function that recurses multiple times
with your implementation.  E.g. how to you define the Fibonacci
function?

Back to comp.lang.forth | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

YC on Rosetta Code Lars Brinkhoff <lars.spam@nocrew.org> - 2016-02-11 07:22 +0100
  Re: YC on Rosetta Code Lars Brinkhoff <lars.spam@nocrew.org> - 2016-02-11 07:40 +0100
    Re: YC on Rosetta Code "WJ" <w_a_x_man@yahoo.com> - 2016-02-11 13:22 +0000
    Re: YC on Rosetta Code humptydumpty <ouatubi@gmail.com> - 2016-02-11 13:36 -0800
      Re: YC on Rosetta Code humptydumpty <ouatubi@gmail.com> - 2016-02-11 20:48 -0800
        Re: YC on Rosetta Code Lars Brinkhoff <lars.spam@nocrew.org> - 2016-02-12 07:18 +0100
          Re: YC on Rosetta Code humptydumpty <ouatubi@gmail.com> - 2016-02-11 22:58 -0800
            Re: YC on Rosetta Code Lars Brinkhoff <lars.spam@nocrew.org> - 2016-02-12 08:22 +0100
            Re: YC on Rosetta Code Albert van der Horst <albert@spenarnc.xs4all.nl> - 2016-02-12 11:07 +0000
              Re: YC on Rosetta Code anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2016-02-12 12:51 +0000
              Re: YC on Rosetta Code humptydumpty <ouatubi@gmail.com> - 2016-02-12 11:15 -0800
                Re: YC on Rosetta Code humptydumpty <ouatubi@gmail.com> - 2016-02-14 08:19 -0800
          Re: YC on Rosetta Code humptydumpty <ouatubi@gmail.com> - 2016-02-11 23:14 -0800
            Re: YC on Rosetta Code Lars Brinkhoff <lars.spam@nocrew.org> - 2016-02-12 08:31 +0100
              Re: YC on Rosetta Code humptydumpty <ouatubi@gmail.com> - 2016-02-12 00:39 -0800
              Re: YC on Rosetta Code humptydumpty <ouatubi@gmail.com> - 2016-02-12 01:21 -0800
    Re: YC on Rosetta Code "WJ" <w_a_x_man@yahoo.com> - 2016-02-14 21:48 +0000

csiph-web