Elektrine lite

← Feed

@someacnt@sh.itjust.works

Post #4086311

2026-07-25 04:05 UTC

Pure function, is that a functional programming lingo

Replies (1)

  • @ThirdConsul@lemmy.zip 2026-07-25 11:17

    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; }

    Open ##4086310