Skip to content

Commit

Permalink
Add Params:, Returns:, to findSplitxx().
Browse files Browse the repository at this point in the history
  • Loading branch information
H. S. Teoh committed Sep 10, 2015
1 parent 89d9653 commit 4ac555c
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions std/algorithm/searching.d
Expand Up @@ -2397,6 +2397,14 @@ If $(D haystack) is a random-access range, all three components of the
tuple have the same type as $(D haystack). Otherwise, $(D haystack)
must be a forward range and the type of $(D result[0]) and $(D
result[1]) is the same as $(XREF range,takeExactly).
Params:
pred = Predicate to use for comparing needle against haystack.
haystack = The range to search.
needle = What to look for.
Returns:
A tuple of the split portions of `haystack` (see above for details).
*/
auto findSplit(alias pred = "a == b", R1, R2)(R1 haystack, R2 needle)
if (isForwardRange!R1 && isForwardRange!R2)
Expand Down

0 comments on commit 4ac555c

Please sign in to comment.