Re: Discuss changing the behaviour of append()

new topic     » goto parent     » topic index » view thread      » older message » newer message
kinzz said...

Derek, this case shows that there was some wrong logic in your "current code".

And that your subtle logic bug was fixed thanks to old good append() feature.

Okay, what was the wrong logic bug?

kinzz said...

So, your code was 'ugly', not your new function F() which corrected your mistake.

It's still slower, as F() has to make the check for a sequence and then append() will that check a second time. Why not consolidate these two into a single check?

kinzz said...

Or, maybe, you just forgot how append() works? smile

Let's remember, length() works on atoms. It's append() (and prepend()) that's inconsistent here.

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

Search



Quick Links

User menu

Not signed in.

Misc Menu