Warning: Use of undefined constant Symbol - assumed 'Symbol' (this will throw an Error in a future version of PHP) in /mnt/new-ebs/workbench-106550/lib/dojo/util/docscripts/lib/parser2/dojo2.inc on line 215 Warning: Use of undefined constant JavaScriptSymbol - assumed 'JavaScriptSymbol' (this will throw an Error in a future version of PHP) in /mnt/new-ebs/workbench-106550/lib/dojo/util/docscripts/lib/parser2/dojo2.inc on line 215

dojox/lang/functional/fold.js

  • Provides:

    • dojox.lang.functional.fold
  • Requires:

    • dojox.lang.functional.lambda in common
  • dojox.lang.functional.foldl

    • parameters:
      • a: (typeof Array|String|Object)
      • f: (typeof Function)
      • z: (typeof Object)
      • o: (typeof Object)
    • returns
      Object
    • summary
      repeatedly applies a binary function to an array from left
      to right using a seed value as a starting point; returns the final
      value.
    • type
      Function
  • dojox.lang.functional.foldl1

    • parameters:
      • a: (typeof Array|String|Object)
      • f: (typeof Function|String|Array)
      • o: (typeof Object)
    • returns
      Object
    • summary
      repeatedly applies a binary function to an array from left
      to right; returns the final value.
    • type
      Function
  • dojox.lang.functional.foldr

    • parameters:
      • a: (typeof Array|String)
      • f: (typeof Function|String|Array)
      • z: (typeof Object)
      • o: (typeof Object)
    • returns
      Object
    • summary
      repeatedly applies a binary function to an array from right
      to left using a seed value as a starting point; returns the final
      value.
    • type
      Function
  • dojox.lang.functional.foldr1

    • parameters:
      • a: (typeof Array|String)
      • f: (typeof Function|String|Array)
      • o: (typeof Object)
    • returns
      Object
    • summary
      repeatedly applies a binary function to an array from right
      to left; returns the final value.
    • type
      Function
  • dojox.lang.functional.reduce

    • parameters:
      • a: (typeof Array|String|Object)
      • f: (typeof Function|String|Array)
      • z: (typeof Object)
    • returns
      Object
    • summary
      apply a function simultaneously against two values of the array
      (from left-to-right) as to reduce it to a single value.
    • type
      Function
  • dojox.lang.functional.reduceRight

    • parameters:
      • a: (typeof Array|String)
      • f: (typeof Function|String|Array)
      • z: (typeof Object)
    • returns
      Object
    • summary
      apply a function simultaneously against two values of the array
      (from right-to-left) as to reduce it to a single value.
    • type
      Function
  • dojox.lang.functional.unfold

    • parameters:
      • pr: (typeof Function|String|Array)
      • f: (typeof Function|String|Array)
      • g: (typeof Function|String|Array)
      • z: (typeof Object)
      • o: (typeof Object)
    • returns
      Array
    • summary
      builds an array by unfolding a value
    • type
      Function
  • dojo

    • alias - dojo
  • dojox.lang.functional

    • alias - dojox.lang.functional
  • dojox.lang.functional.fold

    • type
      Object
  • dojox.lang

    • type
      Object
  • dojox

    • type
      Object