Hacker News new | past | comments | ask | show | jobs | submit login

    sum(A) + sum(B) = sum(A ∪ B)
    sum(A) + sum({}) = sum(A ∪ {})
    sum(A) + sum({}) = sum(A)
    sum({}) = 0



(This assumes either A and B are multisets, or they are disjoint.)


Indeed, but in the context of minor changes in how things SQL should behave, we can assume that everything is a multiset.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: