hmm.. i'm trying to think of an algorithm that takes a list of elements and returns a list with every way to take the elements of that list and split it up into smaller lists, so that every element is in exactly one of the smaller lists
i can't even think of a way to phrase it, let alone program it
@monorail can you draw it?
@Galuade i can give you an example https://glaceon.social/@monorail/104123476697965654
@monorail I think mathematica has a builtin for this
@Felthry do you know what it's called?
@monorail afraid not, sorry
@Felthry damn, thanks anyway
@monorail i think there is something you could probably do starting from calculating the power set though?
@monorail try using voxels
@monorail btw what about [[2, 1], [3]] and [[3], [1, 2]] and whatnot?
@SoniEx2 i don't care about order
@monorail itertools
has powerset
which is almost what you want I think
@monorail so you're looking for the set of all partitions of a set
i don't have anything off the top of my head but hopefully the name helps
@monorail I'm bad at set theory so there's a high chance I'm misunderstanding or wrong but would this be like, different decompositions of the set
@Dee oh shit i think this is exactly what i want, thank you!
like if i put in
[1, 2, 3]
i want to get outevery way to split up the input list into smaller lists