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

support currying when calling closures with too few parameters

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 1.0-beta-4
    • None
    • None

    Description

      Hallvard Trætteberg made this suggestion...

      clos1 =

      {s1, s2 | s + s}

      clos2 = clos1("hi")
      clos2("there") // returns "hithere"

      Attachments

        1. closure-currying.patch
          2 kB
          Brian McCallister

        Activity

          People

            Unassigned Unassigned
            jstrachan James Strachan
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: