8000 Update README.md · bitnom/functional-jargon-python@707a652 · GitHub
[go: up one dir, main page]

Skip to content

Commit 707a652

Browse files
authored
Update README.md
1 parent 48f21d8 commit 707a652

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

README.md

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -177,12 +177,8 @@ print('This is a side effect!')
177177
Or:
178178

179179
```python
180-
result_sums = []
181-
182-
def add(first: int, second: int) -> int:
183-
result_sum = first + second
184-
result_sums.append(result_sum) # this is a side effect
185-
return result_sum
180+
numbers = []
181+
numbers.append(1) # mutates the `numbers` array
186182
```
187183

188184
## Purity

0 commit comments

Comments
 (0)
0