The docs could use clarification, but it looks like take-nth is doing
what's advertised.
Is there ever a case (I can't think of one) where a programmer really
wants to feed this function a non-positive n? That is, should take-nth
crap out if (< n 1)?
Yes I agree it makes perfect sense, but I don't think the doc string
really says that. It is probably just be my obtuseness but attached is
a very minor patch which might be more clear. As to what should happen
with an argument of 0 or less - I have no idea!
On Oct 28, 6:04 pm, John Harrop <jharrop...@gmail.com> wrote:Yes I agree it makes perfect sense, but I don't think the doc string
> It always starts with the zeroth item and skips ahead however many elements
> were specified. The second argument is the n in
> "every nth item". (You can think of it as the index of the SECOND item to
> take, so (take-nth 3 foo) takes index 0 of foo, then index 3, and so on.)
really says that.