Content deleted Content added
Citation bot (talk | contribs) Added bibcode. | Use this bot. Report bugs. | Suggested by Dominic3203 | Linked from User:LinguisticMystic/cs/outline | #UCB_webform_linked 789/2277 |
Jerryobject (talk | contribs) m →Imperative vs. functional programming: WP:LINKs: update-standardize, needless WP:PIPEs > WP:NOPIPEs. WP:BADEMPHASIS MOS:QUOTEMARKS > <code>s. |
||
Line 165:
=== Imperative vs. functional programming ===
The following two examples (written in [[
Traditional imperative loop:
Line 184:
.map(a => a * 10)
.reduce((a, b) => a + b, 0);
</syntaxhighlight>Sometimes the abstractions offered by functional programming might lead to development of more robust code that avoids certain issues that might arise when building upon large amount of complex, imperative code, such as [[
=== Simulating state ===
|