1. ver 4.0 map question

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 ? 
 

new topic     » topic index » view message » categorize

2. Re: ver 4.0 map question

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.

new topic     » goto parent     » topic index » view message » categorize

3. Re: ver 4.0 map question

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 !

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu