import { Index , List } from '../types' ; import { Maybe } from '@typed/maybe' ; import { lensIndex } from '../lensIndex' ; const HEAD_INDEX = 0 ; name export function head < A > ( list ) { const { view } = lensIndex < A > ( HEAD_INDEX ) ; return view ( list ) ; }