News for hackers. Stuff that matters.
Re:Functional Programming, Abstraction, and Names by SatvikBeri on Saturday May 21, 2016 @01:08AM (#11743291)
The integers >= 0 have 0 as the identity: 0 + n = n + 0 = n. But they don't have inverses, because e.g. there's no positive number n such that n + 1 = 0.
Re:Functional Programming, Abstraction, and Names by cantankerous on Saturday May 21, 2016 @02:48AM (#11743513)
I think you mean the naturals.
Re:Functional Programming, Abstraction, and Names by floatboth on Saturday May 21, 2016 @07:29AM (#11744305)
People disagree about whether 0 is natural though. Better not to use the word at all :D
Re:Functional Programming, Abstraction, and Names by SatvikBeri on Tuesday May 24, 2016 @10:38AM (#11761889)
I wanted to avoid an argument about whether 0 is a natural number or not.
Re:Functional Programming, Abstraction, and Names by shele on Saturday May 21, 2016 @04:19AM (#11743765)
OP said "integers >= 0". Not much to "think" here.