std.algorithm: improve findSplit methods module documentation

Signed-off-by: João Lourenço <jlourenco5691@gmail.com>
This commit is contained in:
João Lourenço 2021-06-03 17:22:13 +01:00
parent f6cfa2af2a
commit 882cf3df43
No known key found for this signature in database
GPG key ID: 03417B8C22A6D4A6

View file

@ -47,13 +47,13 @@ $(T2 findSkip,
leaves `a` unchanged, whereas `findSkip(a, "c")` advances `a`
to `"de"` and returns `true`.)
$(T2 findSplit,
`findSplit("abcdefg", "de")` returns the three ranges `"abc"`,
`findSplit("abcdefg", "de")` returns a tuple of three ranges `"abc"`,
`"de"`, and `"fg"`.)
$(T2 findSplitAfter,
`findSplitAfter("abcdefg", "de")` returns the two ranges
`"abcde"` and `"fg"`.)
`findSplitAfter("abcdefg", "de")` returns a tuple of two ranges `"abcde"`
and `"fg"`.)
$(T2 findSplitBefore,
`findSplitBefore("abcdefg", "de")` returns the two ranges `"abc"`
`findSplitBefore("abcdefg", "de")` returns a tuple of two ranges `"abc"`
and `"defg"`.)
$(T2 minCount,
`minCount([2, 1, 1, 4, 1])` returns `tuple(1, 3)`.)