Rustom Mody <rustompm...@gmail.com> writes: <snip> > I posted it because I genuinely thought I had missed some obvious way > of splitting a set into an (arbitrary) element and a rest without > jumping through hoops. Evidently not
Curious, because I posted because I thought you had. Anyway, for speed you probably just want def cs(n, r): return frozenset({frozenset(s) for s in c(n, r)}) as suggested. -- Ben. -- https://mail.python.org/mailman/listinfo/python-list