Hacker News new | ask | show | jobs
by jatone 1750 days ago
the idea that append performs no mutation is fairly insane. its name implies a mutation.
1 comments

No, it does not. Appending is the addition of a suffix, it does not say anything about how it works.

Example: https://hackage.haskell.org/package/bytestring-0.11.1.0/docs...

if you add a suffix, you've changed the value. that is a mutation.