Purity

Published: 1/18/2020
Last edited: 1/26/2020

A pure function is deterministic, has no side-effects and is referentially transparent.

const add = curry((a, b) => a + b)
const addTwo = add(2)
addTwo(100) / add(200)(111)
(2+100) / (200+111)
102 / 311
Published: 1/18/2020
Last edited: 1/26/2020
See this page on Github
Built with 💛 by Open Sorcerers
Created with Gatsby using the 😎 foresight starter