Re: [Chicken-users] generate numerical list

2016-07-11 Thread Jeremy Steward
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 On 11/07/16 08:57 PM, John Cowan wrote: | Jeremy Steward scripsit: | |> Note that iota annoyingly does not work well with the numbers egg |> -> | | This is a general problem with the numbers egg and all other | Chicken code, whether part of the

Re: [Chicken-users] generate numerical list

2016-07-11 Thread John Cowan
Jeremy Steward scripsit: > Note that iota annoyingly does not work well with the numbers egg -> This is a general problem with the numbers egg and all other Chicken code, whether part of the main build or an egg. If the code is not *compiled* with the numbers egg, it will not know anything

Re: [Chicken-users] generate numerical list

2016-07-11 Thread Jinsong Liang
Thank you Jeremy! Your code is very helpful. Jinsong On Mon, Jul 11, 2016 at 10:43 PM, Jeremy Steward wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA256 > > Note that iota annoyingly does not work well with the numbers egg -> > it cannot figure out what an exact

Re: [Chicken-users] generate numerical list

2016-07-11 Thread Jeremy Steward
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Note that iota annoyingly does not work well with the numbers egg -> it cannot figure out what an exact rational should be. So: ~ (use srfi-1 numbers) ~ (iota 1 10 (/ 3 2)) outputs: ~ Error: (iota) bad argument type - not a number:

Re: [Chicken-users] generate numerical list

2016-07-11 Thread Jinsong Liang
Exactly what I need. Thank you Evan! Jinsong On Mon, Jul 11, 2016 at 10:21 PM, Evan Hanson wrote: > Hi Jinsong, > > SRFI-1 provides `iota' -- http://api.call-cc.org/doc/srfi-1/iota > > Cheers, > > Evan > ___ Chicken-users mailing

Re: [Chicken-users] generate numerical list

2016-07-11 Thread Evan Hanson
Hi Jinsong, SRFI-1 provides `iota' -- http://api.call-cc.org/doc/srfi-1/iota Cheers, Evan ___ Chicken-users mailing list Chicken-users@nongnu.org https://lists.nongnu.org/mailman/listinfo/chicken-users

[Chicken-users] generate numerical list

2016-07-11 Thread Jinsong Liang
Hi, Is there an existing API to generate a list of numbers, given start value, end value, and step? For example, given 1, 2, and 0.5, a list of (1, 1.5, 2) is returned. Thank you! Jinsong ___ Chicken-users mailing list Chicken-users@nongnu.org

Re: [Chicken-users] Generating C

2016-07-11 Thread Norman Gray
Greetings. A followup... On 8 Jul 2016, at 19:46, Norman Gray wrote: "/Data/tools/chicken-4.11.0/bin/csc" -t -unit db -optimize-level 3 -include-path ../.. -emit-all-import-libraries -output-file db.c ../../db.scm [...] [panic] nursery is too small - try higher setting using the `-:s'