Uploaded image for project: 'Pivot'
  1. Pivot
  2. PIVOT-799

extending Pivot collections with Monads and functional methods

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 2.1
    • core-collections
    • None

    Description

      Add some usuful methods to Pivot Collections like those needed to process all elements, going more "function style", like addAll, contains, etc ...
      To simplify usage from people coming from other languages, try to align to other languages names/conventions (for what is possible) , like Scala, C# .
      Verify even if add a interface (defining a single method) that could be passed to some methods to contain logic for processing all elements (like the apply() in Scala), and chose a right name for it (maybe function or other similar).

      Some info here:
      http://apache-pivot-developers.417237.n3.nabble.com/Some-idea-on-extending-Pivot-collections-td3321472.html

      But for more changes in Collections (still to be discussed), wait the 3.0 ...

      Attachments

        1. PIVOT-799_functions_and_options(initial).patch
          65 kB
          Sandro Martini
        2. Monad_sample_revised.groovy
          8 kB
          Sandro Martini

        Issue Links

          Activity

            People

              smartini Sandro Martini
              smartini Sandro Martini
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: