Re: [phix] if 'number' then why not 'list' ?
- Posted by _tom (admin) Feb 21, 2021
- 1068 views
irv said...
- 1 is a number
- 3.1415 is a number
- "Hello" is a string
What is {1} ? (a container containing one number)
What is {1,2,3.14} ? (a container containing a sequence of 3 numbers)
What is {"Hello",1,2} ? (a container containing 1 string and 2 numbers)
What is {"Hello",{1,2,3}} ? (a container containing 1 string and 1 sequence of 3 numbers)
Maybe the word container would make the concept easier to explain?
I like this suggestion. It allows me to include struct and class under "container."
be well
_tom