mirror of
https://github.com/dlang/phobos.git
synced 2025-04-30 15:10:46 +03:00
Update cheat sheet description
This commit is contained in:
parent
ac6c03a646
commit
e695747422
1 changed files with 3 additions and 2 deletions
|
@ -22,8 +22,9 @@ $(T2 boyerMooreFinder,
|
||||||
$(T2 canFind,
|
$(T2 canFind,
|
||||||
`canFind("hello world", "or")` returns `true`.)
|
`canFind("hello world", "or")` returns `true`.)
|
||||||
$(T2 count,
|
$(T2 count,
|
||||||
Counts elements that are equal to a specified value or satisfy a
|
Counts all elements or elements matching a predicate, specific element or sub-range.$(BR)
|
||||||
predicate. `count([1, 2, 1], 1)` returns `2` and
|
`count([1, 2, 1])` returns `3`,
|
||||||
|
`count([1, 2, 1], 1)` returns `2` and
|
||||||
`count!"a < 0"([1, -3, 0])` returns `1`.)
|
`count!"a < 0"([1, -3, 0])` returns `1`.)
|
||||||
$(T2 countUntil,
|
$(T2 countUntil,
|
||||||
`countUntil(a, b)` returns the number of steps taken in `a` to
|
`countUntil(a, b)` returns the number of steps taken in `a` to
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue