Mailing List Archive
tlug.jp Mailing List tlug archive tlug Mailing List Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][tlug] Re: Y Combinator
- Date: Fri, 06 Feb 2009 21:28:01 +0900
- From: "Stephen J. Turnbull" <stephen@example.com>
- Subject: [tlug] Re: Y Combinator
- References: <20090129064805.GQ24024@smtp.office.cynic.net> <49867CF9.50006@bebear.net> <49893031.4000700@fremlin.org> <498BF621.1080608@bebear.net> <498C1622.70401@fremlin.org>
John Fremlin writes: > > fix :: (a -> a) -> a > > fix f = let x = f x in x > The main thing that puzzled me is that the type of fix is > > fix :: (a -> a) -> a > > but "a" must in fact have type > b -> b > because it's used as a function. Is that a question, or does the past tense mean you got it? Of course f is used as a function and thus must have a type of the form (a -> b), to have a fixed point it must be that a = b, and the fixed point itself must have the type a. Ergo fix :: (a -> a) -> a
- Follow-Ups:
- [tlug] Re: Y Combinator
- From: John Fremlin
- References:
- Re: [tlug] Today's TSAC Meeting
- From: Edward Middleton
- [tlug] Re: Today's TSAC Meeting
- From: John Fremlin
- [tlug] Re: Y Combinator
- From: Edward Middleton
- [tlug] Re: Y Combinator
- From: John Fremlin
Home | Main Index | Thread Index
- Prev by Date: Re: [tlug] Re: Y Combinator
- Next by Date: Re: [tlug] Re: Y Combinator
- Previous by thread: Re: [tlug] Re: Y Combinator
- Next by thread: [tlug] Re: Y Combinator
- Index(es):
Home Page Mailing List Linux and Japan TLUG Members Links