Skip to content

Commit

Permalink
Update when.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Trinityyi authored Nov 9, 2020
1 parent 1ad51ba commit 51aca28
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion snippets/when.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ title: when
tags: function,intermediate
---

Tests a value, `x`, against a `predicate` function, conditionally applying a function.
Tests a value, `x`, against a testing function, conditionally applying a function.

- Check if the value of `predicate(x)` is `True` and if so return `when_true(x)`, otherwise return `x`.

Expand Down

0 comments on commit 51aca28

Please sign in to comment.