Nice introduction to Lenses in functional programming.…