You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: h9-traversable-search/README.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -38,5 +38,6 @@ Rules:
38
38
1.`search` should work for any kind of `DeriveTraversable`-derived `Traversable`, including a depth-and breadth-infinite `dataRose a =Rose a [Rose a]` or `newtypeMatrix a =Matrix [[a]]`
39
39
2.`unsafePerformIO`and similar functions are not allowed
40
40
3. the implementation needs to be reasonably efficient
41
+
4.`search` can returnany element satisfying the predicate, so feel free to process the given `Traversable` container inany order
41
42
42
43
There's a small test suite.I run it with `stack test` (takes about a second on my machine).
0 commit comments