Partitions of a set in Ruby
I needed an implementation for generating partitions of a set for FrameSports.ai (long story) and couldn't find a working implementation online
I needed an implementation for generating partitions of a set for FrameSports.ai (long story) and couldn't find a working implementation online. I wrote an implementation based on the Geeks for Geeks article on partitions of a set.
And a direct link to Gist in case the embed doesn't work: