▲ 508 ▼ Uncle Bob becoming even worse: (lemmy.world) submitted 3 months ago by ZILtoid1991@lemmy.world to c/programmer_humor@programming.dev 222 comments fedilink hide all child comments
[–] someacnt@sh.itjust.works 1 point 3 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 3 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 3 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