how can i find all partitions of list of integers? mostly i need algorithm that uses recursion as i'm gonna implement it in SML. i need just algorithm, i will do coding part by myself. by mistake i wrote code for finding subsets and i don't have too much time left for this
SML is kinda similar pascal so you get hang of format i'm gonna write in factorial for example is like this fun fuc x = if x<0 then 0 else if x=1 then 1 else x*(fac x-1)
thanks in advance