mirror of
https://github.com/dlang/phobos.git
synced 2025-04-30 23:20:29 +03:00
std.algorithm: improve findSplit methods module documentation
Signed-off-by: João Lourenço <jlourenco5691@gmail.com>
This commit is contained in:
parent
f6cfa2af2a
commit
882cf3df43
1 changed files with 4 additions and 4 deletions
|
@ -47,13 +47,13 @@ $(T2 findSkip,
|
||||||
leaves `a` unchanged, whereas `findSkip(a, "c")` advances `a`
|
leaves `a` unchanged, whereas `findSkip(a, "c")` advances `a`
|
||||||
to `"de"` and returns `true`.)
|
to `"de"` and returns `true`.)
|
||||||
$(T2 findSplit,
|
$(T2 findSplit,
|
||||||
`findSplit("abcdefg", "de")` returns the three ranges `"abc"`,
|
`findSplit("abcdefg", "de")` returns a tuple of three ranges `"abc"`,
|
||||||
`"de"`, and `"fg"`.)
|
`"de"`, and `"fg"`.)
|
||||||
$(T2 findSplitAfter,
|
$(T2 findSplitAfter,
|
||||||
`findSplitAfter("abcdefg", "de")` returns the two ranges
|
`findSplitAfter("abcdefg", "de")` returns a tuple of two ranges `"abcde"`
|
||||||
`"abcde"` and `"fg"`.)
|
and `"fg"`.)
|
||||||
$(T2 findSplitBefore,
|
$(T2 findSplitBefore,
|
||||||
`findSplitBefore("abcdefg", "de")` returns the two ranges `"abc"`
|
`findSplitBefore("abcdefg", "de")` returns a tuple of two ranges `"abc"`
|
||||||
and `"defg"`.)
|
and `"defg"`.)
|
||||||
$(T2 minCount,
|
$(T2 minCount,
|
||||||
`minCount([2, 1, 1, 4, 1])` returns `tuple(1, 3)`.)
|
`minCount([2, 1, 1, 4, 1])` returns `tuple(1, 3)`.)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue