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

support currying when calling closures with too few parameters

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    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

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment