import { List } from '../' ; import { Maybe } from '@typed/maybe' ; import { lensIndex } from '../lensIndex' ; name export function last < A > ( list ) { const index = list . length - 1 ; const { view } = lensIndex < A > ( index ) ; return view ( list ) ; }