export const last = (list: ArrayLike): T => list.length >= 1 ? list[list.length - 1] : undefined;