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]Re: [tlug] Re: Y Combinator
- Date: Fri, 6 Feb 2009 21:09:02 +0900
- From: tlug@example.com
- Subject: Re: [tlug] Re: Y Combinator
- References: <20090129064805.GQ24024@smtp.office.cynic.net> <498BF621.1080608@bebear.net> <498C1622.70401@fremlin.org>
- User-agent: KMail/1.9.10
On Friday 06 February 2009 19:51:14 John Fremlin wrote: > 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. A clear way of defining fix is: fix f = f (fix f) The type of the result of fix is clearly the same type as the result of f. Since the result of fix is passed as the argument of f, the type of of the argument must also be the same. If the type of f is a -> a, then the type of fix must be (a -> a) -> a. BTW: Wouldn't a discussion of higher order functions be better suited to the TSAC list? Travis
- Follow-Ups:
- Re: [tlug] Re: Y Combinator
- From: Edward Middleton
- References:
- [tlug] Re: Y Combinator
- From: Edward Middleton
- [tlug] Re: Y Combinator
- From: John Fremlin
Home | Main Index | Thread Index
- Prev by Date: Re: [tlug] Disabling "Expire Messages" Function in KMail
- Next by Date: [tlug] Re: Y Combinator
- Previous by thread: [tlug] Re: Y Combinator
- Next by thread: Re: [tlug] Re: Y Combinator
- Index(es):
Home Page Mailing List Linux and Japan TLUG Members Links