Hi,
I am trying to parallelize the download of a list of URLs. For which I need
to break the list into list of lists. This is what I came up with.

(de batch (l s) # l: input list, s = batch size

 (let ts (* -1 s)

(make

(while (< 0 (length l))

(link (head s l))

(setq l (tail ts l))))))


I'd love to get some feedback on this. I mutate 'l' within the loop - is
that acceptable?


Regards,

Kashyap

Reply via email to