mirror of
https://github.com/dlang/phobos.git
synced 2025-04-28 22:21:09 +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,
|
||||
`canFind("hello world", "or")` returns `true`.)
|
||||
$(T2 count,
|
||||
Counts elements that are equal to a specified value or satisfy a
|
||||
predicate. `count([1, 2, 1], 1)` returns `2` and
|
||||
Counts all elements or elements matching a predicate, specific element or sub-range.$(BR)
|
||||
`count([1, 2, 1])` returns `3`,
|
||||
`count([1, 2, 1], 1)` returns `2` and
|
||||
`count!"a < 0"([1, -3, 0])` returns `1`.)
|
||||
$(T2 countUntil,
|
||||
`countUntil(a, b)` returns the number of steps taken in `a` to
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue