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/tailrec.js

  • Provides:

    • dojox.lang.functional.tailrec
  • Requires:

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

    • alias - dojox.lang.functional
  • dojox.lang.functional.inlineLambda

    • alias - dojox.lang.functional.inlineLambda
  • dojox.lang.functional.tailrec

    • parameters:
      • cond: (typeof Function|String|Array)
        The lambda expression, which is used to detect the termination of recursion.
        It accepts the same parameter as the generated recursive function itself.
        This function should return "true", if the recursion should be stopped,
        and the "then" part should be executed. Otherwise the recursion will proceed.
      • then: (typeof Function|String|Array)
        The lambda expression, which is called upon termination of the recursion.
        It accepts the same parameters as the generated recursive function itself.
        The returned value will be returned as the value of the generated function.
      • before: (typeof Function|String|Array)
        The lambda expression, which is called before the recursive step.
        It accepts the same parameter as the generated recursive function itself,
        and returns an array of arguments for the next recursive call of
        the generated function.
    • summary
      Generates a function for the tail recursion pattern. This is the simplified
      version of the linear recursive combinator without the "after" function,
      and with the modified "before" function. All parameter functions are called
      in the context of "this" object.
    • type
      Function
  • dojox.lang

    • type
      Object
  • dojox

    • type
      Object