Skip to content

Commit

Permalink
Update readme.md
Browse files Browse the repository at this point in the history
  • Loading branch information
JungeWerther authored Dec 10, 2024
1 parent 6c65207 commit f11d859
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,10 @@ def add1(n: int):
return n + 1

@to(Maybe)
def (s: int):
def test(s: int):
return s

test(1).bind(add1).effect(print) # prints '[2]'
test(1).bind(add1).effect(print) # prints '2'
```

You can chain computations using compose(). For example
Expand Down

0 comments on commit f11d859

Please sign in to comment.