take_while
container.abstract_array.take_while
take_while(p Unary bool T) => Sequence T[Redefinition of Sequence.take_while]¶[src]
take the first elements for which predicate 'p' holds.
Postcondition
Inherited from Sequence.take_while
post
analysis: result ∀ p
analysis: {
n := nth result.count
!n || !(p n.or_panic)
}Arguments
0.099dev (GIT hash e2d5298d8107bb5fe79600fdb06a49bc75756344)