Learn R Programming

lenses (version 0.0.3)

take_while_il: Conditional head lens

Description

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

Usage

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.