A lens into the elements from the beginning of a structure until the last element that satisfies a predicate.

take_while_il(f)

Arguments

f

the predicate (logical) function

Details

This lens is illegal because set-view is not satisfied, multiple runs of the same lens will reference potentially different elements.