Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Why Learn Haskell? (2018). Parent comment
A "pure" function is one whose result is simply based on its inputs, no dependency on external state/IO etc. Same inputs, same outputs guaranteed.
These types of functions, are really easy to reason about and unit test. State is often messy.
There are no comments on this comment yet.
A "pure" function is one whose result is simply based on its inputs, no dependency on external state/IO etc. Same inputs, same outputs guaranteed.
These types of functions, are really easy to reason about and unit test. State is often messy.