Uploaded image for project: 'Groovy'
  1. Groovy
  2. GROOVY-2073

add DGM combinations methods

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.1-beta-2
    • 1.1-beta-3
    • groovy-jdk
    • None

    Description

      def lists = [['a', 'b'], [1, 2, 3]]
      assert lists.combinations() as Set ==
      [['a', 1], ['a', 2], ['a', 3],
      ['b', 1], ['b', 2], ['b', 3]] as Set

      Attachments

        Activity

          People

            paulk Paul King
            paulk Paul King
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: