▲ 537 ▼ Uncle Bob becoming even worse: (europe.pub) submitted 3 months ago by ZILtoid1991@lemmy.world to c/programmer_humor@programming.dev 216 comments fedilink hide all child comments
[–] someacnt@sh.itjust.works 1 point 2 months ago (1 child) Pure function, is that a functional programming lingo permalink fedilink source parent hideshow 1 child comment replies: [–] ThirdConsul@lemmy.zip 2 points 2 months ago Pure function = no side effects, no internal state. If you run a pure function twice with the same input, it will give the same output. Example of pure function (a,b) => a+b Example of inpure function let c; (a, b) => { c++; return a+b; } permalink fedilink source parent
[–] ThirdConsul@lemmy.zip 2 points 2 months ago Pure function = no side effects, no internal state. If you run a pure function twice with the same input, it will give the same output. Example of pure function (a,b) => a+b Example of inpure function let c; (a, b) => { c++; return a+b; } permalink fedilink source parent