Generate Combinations on Rosetta Code

Python and J-lang code

circuit4u
circuit4u
Nov 3 · 4 min read

Rosetta code, deriving its name from the famous ancient Rosetta stone, is a website that collects code snippets solving simple computer problems. For every computer problem, solutions from different computer languages are listed side-by-side for comparison. In that sense, it is the Rosetta stone of computer languages, which totals way more than three.

The other day, I was trying to find from there, some code/algorithm to generate combinations of a list of items, i.e. Rosetta code: combinations

Keep the story going. Sign up for an extra free read.

You've completed your member preview for this month, but when you sign up for a free Medium account, you get one more story.
Already have an account? Sign in

circuit4u

Written by

circuit4u

The Startup

Medium's largest active publication, followed by +542K people. Follow to join our community.

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade