Re: length() of an atom
- Posted by DerekParnell (admin) Jul 28, 2010
- 1616 views
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