⍝ Tail recursive factorial:

    ⎕io←1

    factorial¨⍳10
1 2 6 24 120 720 5040 40320 362880 3628800

⍝∇ factorial

Back to: code

Back to: Workspaces