[Issue 13467] A little better std.algorithm.canFind documentation

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Thu Sep 18 12:50:31 PDT 2014


https://issues.dlang.org/show_bug.cgi?id=13467

--- Comment #2 from bearophile_hugs at eml.cc ---
(In reply to hsteoh from comment #1)
> Does "among" work for substrings? I.e., does among("XabcY", "abc", "def")
> return true? If not, I'm not sure I see the point of mentioning this in the
> docs for canFind, since they would cover different functionalities.

I think Phobos functions should have a "Related" section for the related
functions. This helps a lot the discoverability of functions.

As example, this Haskell documentation page of the function "head" has a
"Related" section that links to the drop, dropWhile, init, last, tail
functions.

http://zvon.org/other/haskell/Outputprelude/head_f.html

--


More information about the Digitalmars-d-bugs mailing list