Re: currying

2010-09-07 Thread Andy Wingo
Hi Eric, Your code is not formatted idiomatically. If you want feedback, use standard style. Lacking anything Guile-specific, I think Taylor Campbell's style guide is as fine as any: http://mumble.net/~campbell/scheme/style.txt Cheers, Andy -- http://wingolog.org/

Re: currying

2010-09-07 Thread Thien-Thi Nguyen
() "Eric J. Van der Velden" () Mon, 6 Sep 2010 21:36:58 +0200 (define neither (both (compose not)) The first one doesn't compile. The second one does, but this is not what I meant; It suspects two arguments, the '() '() for example, instead of one, the funtion null? for example.

currying

2010-09-06 Thread Eric J. Van der Velden
Hello, 1. I have curried (compose) so that I can define (not2) below, (define compose(lambda(f) (lambda(g) (lambda(x) (f(g x)) (define not2 (compose not) ) ((not2 null?)'()) This is OK. 2. I do this also, (define both(lambda(f)