![]() |
.. (לתיקייה המכילה) | |
question 2: Is the following a legal (int,string) switchlist value: [1,"a","b",2,3]? | |
No. The types have to be alternating, e.g. [1,"a",2] or ["a",true,"b", false]. |
question 2: Do we need to be able to define switchlists using the square bracket list syntax, i.e. [1,"a",2,"b"] ? | |
No. The values should be constructed using the constructors defined in your switchlist datatype definition, just like a list can be constructed using 'cons' and 'nil'. |