export const head = xs => {
  if (isEmpty(xs)) { throw new EmptyListError(head) }
  return xs.head()
}