Re: length() of an atom

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

What if you had length() return -1 if it was given an atom?

Because that defeats the purpose of my proposal. I want to make coding simpler for people so returning 1 is much more user-friendly than -1.

Also, what is the unit-of-measure returned by length()? I'm suggesting it is 'elements'.

{x,y} has 2 elements involved 
{x}   has 1 element involved 
{}    has zero elements involved 
x     has 1 element involved 

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

Search



Quick Links

User menu

Not signed in.

Misc Menu