take_while
list.take_while
take_while(p Unary bool A) => Sequence A[Redefinition of Sequence.take_while]¶[src]
Lazily take the first elements of a list 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)