<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">Hi,</div><div class="gmail_quote"><br></div><div class="gmail_quote">General comment: none of the other containers APIs use a function<DataType> suffix. I noticed that Data.Tree does for a bunch of functions. Perhaps we should avoid continuing down that path and instead have functions like 'lookup' and 'lookupInForest'.</div>

<div class="gmail_quote"><br>On Thu, Feb 27, 2014 at 12:34 PM, Joćo Cristóvćo <span dir="ltr"><<a href="mailto:jmacristovao@gmail.com" target="_blank">jmacristovao@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div class="">-- | get the sub-tree rooted at the first (left-most, depth-first) value that<br>
-- matches the provided condition<br>
findTree :: (a -> Bool) -> Tree a -> Maybe (Tree a)<br></div></blockquote><div><br></div><div>I believe we usually use a "By" suffix for functions that take the predicate as an argument instead of as an instance. So I'd vote for lookupBy instead of findTree.</div>

<div><br></div><div>Cheers,</div><div>Johan</div><div><br></div></div></div></div>