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:

partition.rb
GitHub Gist: instantly share code, notes, and snippets.

Subscribe to Ori Marash

Don’t miss out on the latest issues. Sign up now to get access to the library of members-only issues.
jamie@example.com
Subscribe