Skip to content

Instantly share code, notes, and snippets.

@Whateverable
Created June 22, 2018 11:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Whateverable/090b653940d451e7c75a7171caabd433 to your computer and use it in GitHub Desktop.
Save Whateverable/090b653940d451e7c75a7171caabd433 to your computer and use it in GitHub Desktop.
evalable6
{(.pull-one,.pull-one,{say @_.combinations(2);.pull-one}...*).head(10)}((2..*).iterator)
((2 3))
((2 3) (2 4) (3 4))
((2 3) (2 4) (2 5) (3 4) (3 5) (4 5))
((2 3) (2 4) (2 5) (2 6) (3 4) (3 5) (3 6) (4 5) (4 6) (5 6))
((2 3) (2 4) (2 5) (2 6) (2 7) (3 4) (3 5) (3 6) (3 7) (4 5) (4 6) (4 7) (5 6) (5 7) (6 7))
((2 3) (2 4) (2 5) (2 6) (2 7) (2 8) (3 4) (3 5) (3 6) (3 7) (3 8) (4 5) (4 6) (4 7) (4 8) (5 6) (5 7) (5 8) (6 7) (6 8) (7 8))
((2 3) (2 4) (2 5) (2 6) (2 7) (2 8) (2 9) (3 4) (3 5) (3 6) (3 7) (3 8) (3 9) (4 5) (4 6) (4 7) (4 8) (4 9) (5 6) (5 7) (5 8) (5 9) (6 7) (6 8) (6 9) (7 8) (7 9) (8 9))
((2 3) (2 4) (2 5) (2 6) (2 7) (2 8) (2 9) (2 10) (3 4) (3 5) (3 6) (3 7) (3 8) (3 9) (3 10) (4 5) (4 6) (4 7) (4 8) (4 9) (4 10) (5 6) (5 7) (5 8) (5 9) (5 10) (6 7) (6 8) (6 9) (6 10) (7 8) (7 9) (7 10) (8 9) (8 10) (9 10))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment