@elmlang 4. Pure functions – Easier to test as the output will always match the…

@elmlang 4. Pure functions

– Easier to test as the output will always match the input
– Allows caching strategies like memoization
– Portable. Usually platform independent due to no side effects.

Just write your functions like this as much as possible.

Source by Stefan Froelich

Leave a Reply

Your email address will not be published. Required fields are marked *