export const head = xs => {
  if (isList(xs)) { return isEmpty(xs) ? error.emptyList(xs, head) : xs.head(); }
  return error.listError(xs, head);
}