Re: [Chicken-users] 4.8.0.5 syntax weirdness

2014-03-11 Thread Peter Bex
On Mon, Mar 10, 2014 at 11:22:53PM -0500, Jim Ursetto wrote: This is the fix: commit f8230a466ce3a86f360178f115fb62ee124448b9 Author: Peter Bex peter@xs4all.nl Date: Sun Jun 30 18:50:09 2013 +0200 Fix meta-evaluation to actually take place in the meta environment and add tests

[Chicken-users] [TFP2014] Final Call For Papers

2014-03-11 Thread Peter Achten
- F I N A L C A L L F O R P A P E R S - TFP 2014 === 15th Symposium on Trends in Functional Programming May 26-28, 2014

Re: [Chicken-users] Review my Caesar Cipher?

2014-03-11 Thread Daniel Carrera
With the last suggestion from Alex, and a tip to use cond-expand from Kon, I have settled on the following: - ; ; Works with Chicken Scheme and Gauche. ; (cond-expand (chicken (use srfi-13)) (gauche (use srfi-13))) (define msg The quick brown fox jumps

Re: [Chicken-users] Review my Caesar Cipher?

2014-03-11 Thread Alex Shinn
On Tue, Mar 11, 2014 at 7:15 PM, Daniel Carrera dcarr...@gmail.com wrote: With the last suggestion from Alex, and a tip to use cond-expand from Kon, I have settled on the following: - ; ; Works with Chicken Scheme and Gauche. ; (cond-expand (chicken (use

Re: [Chicken-users] Review my Caesar Cipher?

2014-03-11 Thread Daniel Carrera
On 11 March 2014 12:41, Alex Shinn alexsh...@gmail.com wrote: Chibi has string-map in (chibi string). But actually, if you're aiming for R7RS support then string-map is in (scheme base). Just replace the cond-expand with: (import (scheme base)) Hmm... sadly, (import (scheme base)) fails

[Chicken-users] Problem with (fold)

2014-03-11 Thread Daniel Carrera
Hello, I'm having a problem with (fold): (use srfi-1) ; List library. (fold (lambda (a b) (+ (* a 10) b)) 0 '(1 2 3)) I was expecting this to return 123, but it returns 60. I'm confused. In my mind, at each step I shift the current value to the left (i.e. multiply by 10) and add the new

Re: [Chicken-users] Problem with (fold)

2014-03-11 Thread Daniel Carrera
I think I've answered my own question: I have to switch the a and the b. I guess I was confused as to how parameters are sent into the lambda. Cheers, Daniel. On 11 March 2014 15:30, Daniel Carrera dcarr...@gmail.com wrote: Hello, I'm having a problem with (fold): (use srfi-1) ; List

Re: [Chicken-users] Problem with (fold)

2014-03-11 Thread Peter Bex
On Tue, Mar 11, 2014 at 03:30:56PM +0100, Daniel Carrera wrote: Hello, I'm having a problem with (fold): (use srfi-1) ; List library. (fold (lambda (a b) (+ (* a 10) b)) 0 '(1 2 3)) I was expecting this to return 123, but it returns 60. I'm confused. In my mind, at each step I

Re: [Chicken-users] Problem with (fold)

2014-03-11 Thread Daniel Carrera
On 11 March 2014 15:41, Peter Bex peter@xs4all.nl wrote: To avoid such mistakes, it's helpful to use mnemonic names: (fold (lambda (item result) (+ (* result 10) item)) 0 '(1 2 3)) Thanks. I was mentally reading from left to right, so I ended up assuming that it was (result item).

Re: [Chicken-users] Review my Caesar Cipher?

2014-03-11 Thread Shiro Kawai
(Sorry for off-topic of ML) From: Daniel Carrera dcarr...@gmail.com Subject: Re: [Chicken-users] Review my Caesar Cipher? Date: Tue, 11 Mar 2014 13:20:15 +0100 Hmm... sadly, (import (scheme base)) fails with Chicken and Gauche. Development head of Gauche already supports r7rs, FYI. --shiro

Re: [Chicken-users] Problem with (fold)

2014-03-11 Thread Peter Bex
On Tue, Mar 11, 2014 at 03:47:53PM +0100, Daniel Carrera wrote: On 11 March 2014 15:41, Peter Bex peter@xs4all.nl wrote: To avoid such mistakes, it's helpful to use mnemonic names: (fold (lambda (item result) (+ (* result 10) item)) 0 '(1 2 3)) Thanks. I was mentally reading from

Re: [Chicken-users] Review my Caesar Cipher?

2014-03-11 Thread John Cowan
Shiro Kawai scripsit: Development head of Gauche already supports r7rs, FYI. Excellent news! -- John Cowan co...@ccil.orghttp://ccil.org/~cowan No man is an island, entire of itself; every man is a piece of the continent, a part of the main. If a clod be washed away by the sea, Europe

Re: [Chicken-users] 4.8.0.5 syntax weirdness

2014-03-11 Thread Jim Ursetto
Ok. May not be able to make a full release for a few days but will push out the change Wednesday, at least. On Mar 11, 2014, at 2:31, Peter Bex peter@xs4all.nl wrote: On Mon, Mar 10, 2014 at 11:22:53PM -0500, Jim Ursetto wrote: This is the fix: commit