[alexandria-devel] [Patch]: Fix an example in the docstring of iota.

Stas Boukarev stassats at gmail.com
Tue May 15 21:35:13 UTC 2012


Stas Boukarev <stassats at gmail.com> writes:

> Stas Boukarev <stassats at gmail.com> writes:
>
>> Stas Boukarev <stassats at 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.




-- 
With best regards, Stas.




More information about the alexandria-devel mailing list