< Back to IRCAM Forum

Permutation of sublists

Hi everyone,

I am wondering if there is an efficient way to apply permutations (or any other process, for that matter) to sublists. There is a patch in the FDSDB library that does this, but it only applies random permutation, whereas I’d like to control the type of permutation. I will say at the outset that I haven’t learned how to write lisp code yet, maybe it’s time that I do that, but in the meantime, if anyone has a suggestion how to do it visually I’ll be very grateful.

I’ve found one unsatisfactory workaround: flat the list of lists, apply the process, then -> group list.

Hi,

No group-list is a bad idea. Use instead mapcar (or omloop for more complicated stuff)
cf. attachment

Best
K

applying_func_on_sublist.omp (2.85 KB)

Perfect, thanks very much!