The challenges of documenting generic functions

I tend to find it very helpful when functions are documented in terms of consistency with other existing methods. e.g. findall(x) might be documented to return the same thing as collect(i for (i,v) in enumerate(x) if v)