Content added Content deleted
|
|
Line 324: |
Line 324: |
|
pascal = iterate nextRow [1] |
|
pascal = iterate nextRow [1] |
|
</pre> |
|
</pre> |
⚫ |
|
|
⚫ |
|
|
|
|
|
⚫ |
|
|
⚫ |
factorial is recur [ 0 =, 1 first, pass, product, -1 +] |
|
⚫ |
combination is fork [ > [first, second], 0 first, |
|
⚫ |
/ [factorial second, * [factorial - [second, first], factorial first] ] |
|
⚫ |
|
|
⚫ |
pascal is transpose each combination cart [pass, pass] tell |
|
⚫ |
|
|
⚫ |
|
|
⚫ |
|
|
|
|
|
|
|
=={{header|J}}== |
|
=={{header|J}}== |
Line 428: |
Line 416: |
|
} |
|
} |
|
}</java> |
|
}</java> |
|
|
|
|
⚫ |
|
|
⚫ |
|
|
|
|
|
⚫ |
|
|
⚫ |
factorial is recur [ 0 =, 1 first, pass, product, -1 +] |
|
⚫ |
combination is fork [ > [first, second], 0 first, |
|
⚫ |
/ [factorial second, * [factorial - [second, first], factorial first] ] |
|
⚫ |
|
|
⚫ |
pascal is transpose each combination cart [pass, pass] tell |
|
⚫ |
|
|
⚫ |
|
|
⚫ |
|
|
|
|
|
|
=={{header|OCaml}}== |
|
=={{header|OCaml}}== |