Y
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
masklinn
1750 days ago
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...
link
jatone
1746 days ago
if you add a suffix, you've changed the value. that is a mutation.
link
Example: https://hackage.haskell.org/package/bytestring-0.11.1.0/docs...