1. ver 4.0 map question
- Posted by bernie Sep 10, 2008
- 895 views
Can a map key be both a atom and a sequence in the SAME map ? Can a map contain the same amount data as a very large sequence ?
2. Re: ver 4.0 map question
- Posted by DerekParnell (admin) Sep 10, 2008
- 884 views
bernie said...
Can a map key be both a atom and a sequence in the SAME map ?
Yes. A map key is any Euphoria object.
-- All good map m = new() put(m, 123, "First Item") put(m, "Another", "Item") put(m, 45.67, "Still more") put(m, {"abc", 00.22233, 5,{"nested"}}, "Last item")
bernie said...
Can a map contain the same amount data as a very large sequence ?
Yes. Only limited by memory. There is no hard-coded size restriction on the map data.
3. Re: ver 4.0 map question
- Posted by bernie Sep 10, 2008
- 916 views
DerekParnell said...
bernie said...
Can a map key be both a atom and a sequence in the SAME map ?
Yes. A map key is any Euphoria object.
-- All good map m = new() put(m, 123, "First Item") put(m, "Another", "Item") put(m, 45.67, "Still more") put(m, {"abc", 00.22233, 5,{"nested"}}, "Last item")
bernie said...
Can a map contain the same amount data as a very large sequence ?
Yes. Only limited by memory. There is no hard-coded size restriction on the map data.
Thanks Derek !