Re: [phix] if 'number' then why not 'list' ?

new topic     » goto parent     » topic index » view thread      » older message » newer message
  • 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?

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

Search



Quick Links

User menu

Not signed in.

Misc Menu