Skip to content

Commit ceef672

Browse files
author
Zheyuan Chen
authored
Update README.md
1 parent 7f332ea commit ceef672

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

README.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -88,11 +88,12 @@ import requests
8888

8989
# make your own infix functions
9090
@infix
91-
def plus(a, b):
92-
return a + b
91+
def push(lst, x):
92+
lst.append(x)
93+
return lst
9394

94-
1 /plus/ 2
95-
# returns 3
95+
[] /push/ 1 /push/ 2 /push/ 3
96+
# returns [1,2,3]
9697
```
9798

9899
### composable function

0 commit comments

Comments
 (0)