This commit is contained in:
Orion Kindel
2024-09-23 18:56:55 -05:00
parent ebb7d92134
commit 3701b1e2f8
99 changed files with 14174 additions and 330 deletions

View File

@@ -0,0 +1,13 @@
A property of [[Purity|pure]] [[Functions|functions]] that they can always be replaced by the expression they return.
For example `add` is referentially transparent, so
```haskell
a = add 1 3
```
could be replaced with
```haskell
a = 4
```
at design- or compile-time, because `add` always returns the same result and performs no observable side-effects.