import { Maybe } from '@typed/maybe' /** * Returns the head of a list * @param list :: [a] * @returns :: Maybe a */ export const head = (list: ArrayLike) => Maybe.of(list[0])