Skip to content

Commit 5db1dd6

Browse files
committed
Add the 4th rule
1 parent 79bff88 commit 5db1dd6

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

h9-traversable-search/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,5 +38,6 @@ Rules:
3838
1. `search` should work for any kind of `DeriveTraversable`-derived `Traversable`, including a depth- and breadth-infinite `data Rose a = Rose a [Rose a]` or `newtype Matrix a = Matrix [[a]]`
3939
2. `unsafePerformIO` and similar functions are not allowed
4040
3. the implementation needs to be reasonably efficient
41+
4. `search` can return any element satisfying the predicate, so feel free to process the given `Traversable` container in any order
4142

4243
There's a small test suite. I run it with `stack test` (takes about a second on my machine).

0 commit comments

Comments
 (0)