Uploaded image for project: 'Railo'
  1. Railo
  2. RAILO-2080

Add closure functions ArrayMap, ArrayReduce, ArrayEvery, ArraySome functions

    Details

    • Type: Feature Request
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Duplicate Issue
    • Affects Version/s: None
    • Fix Version/s: 4.3.0.000, 4.2.0.006
    • Labels:
      None

      Description

      Now that we have closures, I'm missing the closure functions that Javascript has.

      ArrayMap(arr, fun): returns a new array containing the return values from the function when it is applied to each item
      ArrayReduce(arr, fun [, initial value]): returns a single value to which the array is reduced by calling the function for each item
      ArrayEvery(arr, fun): returns true if the function returns true for all elements
      ArraySome(arr, fun): returns true if the function returns true for at least one element

      Would be nice to have this.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                micstriit Michael Offner
                Reporter:
                knoeperd Jeroen Knoef
              • Votes:
                4 Vote for this issue
                Watchers:
                10 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: