mirror of
https://github.com/dlang/phobos.git
synced 2025-04-29 14:40:30 +03:00
std.algorithm.searching: move takeWhile
line to the current definition
This commit is contained in:
parent
a36113e5ba
commit
ee1e261992
1 changed files with 2 additions and 1 deletions
|
@ -4277,7 +4277,6 @@ Interval option specifier for `until` (below) and others.
|
|||
|
||||
If set to $(D OpenRight.yes), then the interval is open to the right
|
||||
(last element is not included).
|
||||
This is similar to `takeWhile` in other languages.
|
||||
|
||||
Otherwise if set to $(D OpenRight.no), then the interval is closed to the right
|
||||
(last element included).
|
||||
|
@ -4288,6 +4287,8 @@ alias OpenRight = Flag!"openRight";
|
|||
Lazily iterates $(D range) _until the element $(D e) for which
|
||||
$(D pred(e, sentinel)) is true.
|
||||
|
||||
This is similar to `takeWhile` in other languages.
|
||||
|
||||
Params:
|
||||
pred = Predicate to determine when to stop.
|
||||
range = The $(REF_ALTTEXT input _range, isInputRange, std,_range,primitives)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue