Skip to content

Lists & Sequences

Apply lens to every list element. right list when all succeed; left list of per-element Either on any failure.

(bend.each bend.int).get [ 1 "x" 3 ]
# left [ (right 1) (left "x") (right 3) ]

Zero or more — always right. Wraps each.

One or more required. left [] when empty.

At least n elements required.

Exactly n elements required.

Focus on element at index n. right when in bounds; left otherwise.

Contribute Community Sponsor