3 ms·
> 2. But weirdly enough, many operators aren't generic. String concatenation is performed with "++" but addition with "+". Some see concatenation as addition,
by spyked 13y ago
> 2. But weirdly enough, many operators aren't generic. String concatenation is performed with "++" but addition with "+".
Some see concatenation as addition, others as composition. Funnily enough, in Haskell addition is reserved to numbers and composition to functions. I'm guessing that's why "(++)" was chosen for lists, with strings as a particular case.