Re: Discuss changing the behaviour of append()

new topic     » goto parent     » topic index » view thread      » older message » newer message
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,

flwblink

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

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu