A lens into the elements from the beginning of a structure until the last element that satisfies a predicate.
take_while_il(f)
f | the predicate (logical) function |
---|
This lens is illegal because set-view
is not satisfied,
multiple runs of the same lens will reference potentially
different elements.