Skip to content

Commit

Permalink
strain: Add parameters to exercise placeholder to resolve exercism#642
Browse files Browse the repository at this point in the history
  • Loading branch information
jnaulty authored and smalley committed Nov 12, 2017
1 parent 2f31e49 commit db9a17e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion exercises/strain/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@ For example, given the collection of numbers:

- 1, 2, 3, 4, 5

And the predicate:
And the predicate:

Note: _a predicate P(x) will be true or false, depending on whether x belongs to a set._ [Wikipedia - Predicate](https://en.wikipedia.org/wiki/Predicate_(mathematical_logic)))

- is the number even?

Expand Down
4 changes: 2 additions & 2 deletions exercises/strain/strain.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
def keep():
def keep(sequence, predicate):
pass


def discard():
def discard(sequence, predicate):
pass

0 comments on commit db9a17e

Please sign in to comment.