Re: Discuss changing the behaviour of append()

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

S[i] has a length so it is a sequence,
Yet it can type as an atom.

Not so. length() simply returns 1 if the object is not a sequence. This change was made for the same reason we are discussing changing append()/prepend() - so to not fix them as well would be to leave the language in an inconsistent state.

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

Search



Quick Links

User menu

Not signed in.

Misc Menu