2 ms·
the idea that append performs no mutation is fairly insane. its name implies a mutation.
by jatone 5y ago
the idea that append performs no mutation is fairly insane. its name implies a mutation.
- masklinn 5y agoNo, 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/Data-ByteString.html#v:append https://hackage.haskell.org/package/bytestring-0.11.1.0/docs...
- jatone 5y agoif you add a suffix, you've changed the value. that is a mutation.