I have a list with a large number of elements and I need to partition it in chunks of a specific size. Here is my attempt
listpart := proc(cond::list,nchunk::nonnegint:=1000)
if numelems(cond) < nchunk then
It does not run as fast as I thought. I am not even sure if Threads:-Seq could be used in this case. Please tell me what I am doing wrong and how I can modify the code to get a faster response.