Re: Discuss changing the behaviour of append()
- Posted by petelomax Jun 10, 2014
- 5061 views
ArthurCrump said...
ArthurCrump said...
A similar unnecessary restriction applies to prepend
Arthur
To suggest the same for prepend was not such a good idea.
There is unlikely to be any confusion appending a new object to an atom,
flw
ArthurCrump said...
but prepend has its operands in reverse order
Erm, let's just agree that the arguments to prepend are in the same order as append, but of course the result is (sort of) the other way round
ArthurCrump said...
so that
x = prepend(1,2)
would give x={2,1} if it was allowed.
That could be confusing
Hmm. You lost me there. Why exactly is that any more confusing than
x = prepend({1},2)
giving x={2,1}?
Pete

