Path: csiph.com!usenet.pasdenom.info!news.albasani.net!feeder.erje.net!eu.feeder.erje.net!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: Nils M Holm Newsgroups: comp.lang.functional,comp.lang.lisp,comp.lang.scheme,comp.programming,comp.emacs Subject: Re: Associativity paradox in functional expressions Followup-To: comp.lang.scheme Date: 31 Oct 2012 09:21:23 GMT Organization: TARFU Lines: 30 Message-ID: References: <8120f97b-15c2-4ce8-827a-158e955fb73f@z2g2000yqj.googlegroups.com> <9972e570-2504-4401-8de8-49eb1929fdfd@c17g2000yqe.googlegroups.com> X-Trace: individual.net 5trZe9BPC/NcGr3h/YZrcAalPNJlxPymVj0QFbiqPvzNAYNaxghLuYmZ7xIDlzj5WF X-Orig-Path: not-for-mail Cancel-Lock: sha1:XV9JHrTn5HtfNUKpHW8/PhmP1dg= User-Agent: tin/1.8.3-20070201 ("Scotasay") (UNIX) (FreeBSD/8.2-RELEASE (i386)) Xref: csiph.com comp.lang.functional:429 comp.lang.lisp:11838 comp.lang.scheme:1104 comp.programming:2413 comp.emacs:1600 In comp.lang.scheme Totaram Sanadhya wrote: > On the one hand the elements of a list such as (a b c d) are right > associative > > (cons 'a (cons 'b (cons 'c (cons 'd nil)))) C-x C-e > > ==> (a b c d) > > On the other hand a curried function such as (f x y z) is left > associative by definition > > (...(f x) y) z) > > How do you resolve this paradox? It depends. How do you obtain the curried F in the above expression? What is (curry (curry cons x) y) supposed to give? What exactly is the paradox? Maybe, it would be helpful if you posted some code that demonstrates what you are trying to do. F'up-To: comp.lang.scheme -- Nils M Holm < n m h @ t 3 x . o r g > www.t3x.org