export const sum = (xs) => xs.reduce((p, c) => p + c, 0);