-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 main
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 about
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 rational should be. So:
-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: 3/
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 list
Chicken-users@no
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
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
https: