dojox/lang/functional/listcomp.js

  • Provides:

    • dojox.lang.functional.listcomp
  • dojox.lang.functional.buildListcomp

    • type
      Function
    • parameters:
      • s: (typeof String)
    • source: [view]
         return "function(){" + listcomp(s) + "}"; // String
    • summary
      builds a function from a text snippet, which represents a valid
      JS 1.7 list comprehension, returns a string, which represents the function.
    • description
      This method returns a textual representation of a function
      built from the list comprehension text snippet (conformant to JS 1.7).
      It is meant to be evaled in the proper context, so local variable can be
      pulled from the environment.
    • returns
      String
  • dojox.lang.functional.compileListcomp

    • type
      Function
    • parameters:
      • s: (typeof String)
    • source: [view]
         return new Function([], listcomp(s)); // Function
    • summary
      builds a function from a text snippet, which represents a valid
      JS 1.7 list comprehension, returns a function object.
    • description
      This method returns a function built from the list
      comprehension text snippet (conformant to JS 1.7). It is meant to be
      reused several times.
    • returns
      Function
  • dojox.lang.functional.listcomp

    • type
      Function
    • parameters:
      • s: (typeof String)
    • source: [view]
         return (new Function([], listcomp(s)))(); // Array
    • summary
      executes the list comprehension building an array.
    • returns
      Array
  • dojox.lang.functional

    • type
      Object
    • summary
  • dojox.lang

    • type
      Object
    • summary
  • dojox

    • type
      Object
    • summary