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


Groups > comp.lang.forth > #45475

Re: YC on Rosetta Code

Path csiph.com!fu-berlin.de!dotsrc.org!filter.dotsrc.org!news.dotsrc.org!not-for-mail
From Lars Brinkhoff <lars.spam@nocrew.org>
Newsgroups comp.lang.forth
Subject Re: YC on Rosetta Code
Organization nocrew
References <86oabnzry6.fsf@molnjunk.nocrew.org> <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 Fri, 12 Feb 2016 08:31:09 +0100
Message-ID <86mvr6wfk2.fsf@molnjunk.nocrew.org> (permalink)
User-Agent Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux)
Cancel-Lock sha1:RH/1cfSp/TT6UgZcHeEJaVmKByc=
MIME-Version 1.0
Content-Type text/plain
Lines 11
NNTP-Posting-Host 178.18.91.250
X-Trace news.sunsite.dk DXC=GmBDa0M:fHOB^D;0lZCOUDYSB=nbEKnkKgeDVL6j]a7CnY:6X7^ZBNGI57e>YZ9SOK1HBfORCSCcCD5J_h8H;EFC`jOXUD]_HXB
X-Complaints-To staff@sunsite.dk
Xref csiph.com comp.lang.forth:45475

Show key headers only | 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