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

Use better example for Closure composition

    Details

    • Type: Documentation
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.4.5
    • Component/s: None
    • Labels:
      None

      Description

      The present examples in http://docs.groovy-lang.org/latest/html/api/groovy/lang/Closure.html of using solely multiplication for #leftShift and #rightShift isn't particularly illuminating about the differences between forward and reverse composition. Using different operators or something not associative/commutative so that the results differ could help.

        Attachments

          Activity

            People

            • Assignee:
              paulk Paul King
              Reporter:
              mwhipple Matt Whipple
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: