An example in the docstring of iota was (iota 4) => (0 1 2 3 4) while it should've been (iota 4) => (0 1 2 3).
Stas Boukarev stassats@gmail.com writes:
An example in the docstring of iota was (iota 4) => (0 1 2 3 4) while it should've been (iota 4) => (0 1 2 3).
Another problem seems to be with contagion when used with complex numbers: (alexandria:iota 5 :start 1 :step #c(1 2)) => (1 #C(2 2) #C(3 4) #C(4 6) #C(5 8))
Stas Boukarev stassats@gmail.com writes:
Stas Boukarev stassats@gmail.com writes:
An example in the docstring of iota was (iota 4) => (0 1 2 3 4) while it should've been (iota 4) => (0 1 2 3).
Another problem seems to be with contagion when used with complex numbers: (alexandria:iota 5 :start 1 :step #c(1 2)) => (1 #C(2 2) #C(3 4) #C(4 6) #C(5 8))
As I look at it more, it doesn't appear to be a problem, since it conforms to the definition of contagion in CL.
Stas Boukarev stassats@gmail.com writes:
Stas Boukarev stassats@gmail.com writes:
Stas Boukarev stassats@gmail.com writes:
An example in the docstring of iota was (iota 4) => (0 1 2 3 4) while it should've been (iota 4) => (0 1 2 3).
Another problem seems to be with contagion when used with complex numbers: (alexandria:iota 5 :start 1 :step #c(1 2)) => (1 #C(2 2) #C(3 4) #C(4 6) #C(5 8))
As I look at it more, it doesn't appear to be a problem, since it conforms to the definition of contagion in CL.
Thinking about it some more, (alexandria:iota 5 :start 1.0 :step #c(0 2)) => (1.0 #C(1.0 2.0) #C(1.0 4.0) #C(1.0 6.0) #C(1.0 8.0)) doesn't look right.
On 16 May 2012 00:35, Stas Boukarev stassats@gmail.com wrote:
Thinking about it some more, (alexandria:iota 5 :start 1.0 :step #c(0 2)) => (1.0 #C(1.0 2.0) #C(1.0 4.0) #C(1.0 6.0) #C(1.0 8.0)) doesn't look right.
I fully confess that I never thought about complex numbers with IOTA.
Fix in my tree, pushing soon.
Cheers,
-- Nikodemus
alexandria-devel@common-lisp.net