1. ver 4.0 question about map

What is a nested map ?
How is it created ?
How is it used ?
Why is a function called nested_put when it can do many different operations ?
The documents are not clear and do not offer a good explanation of the nested map.

new topic     » topic index » view message » categorize

2. Re: ver 4.0 question about map

bernie said...

What is a nested map ?
How is it created ?
How is it used ?
Why is a function called nested_put when it can do many different operations ?
The documents are not clear and do not offer a good explanation of the nested map.

The basic idea is that the elements of the map are maps themselves. It's somewhat like supplying multiple subscripts for a The other operations are to make the equivalent of +=, etc for elements of maps. It's basically an optimization. The regular put() does this as well.

Matt

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

3. Re: ver 4.0 question about map

mattlewis said...
bernie said...

What is a nested map ?
How is it created ?
How is it used ?
Why is a function called nested_put when it can do many different operations ?
The documents are not clear and do not offer a good explanation of the nested map.

The basic idea is that the elements of the map are maps themselves. It's somewhat like supplying multiple subscripts for a The other operations are to make the equivalent of +=, etc for elements of maps. It's basically an optimization. The regular put() does this as well.

Matt:
Is a key a name of another map ?

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

4. Re: ver 4.0 question about map

bernie said...

Is a key a name of another map ?

Not really. A map is a way to create a, well, a map between two values: a key and a value. The key is what you use to get a value from a particular map. It's similar to what a subscript is for a sequence, except that a key can be any euphoria object.

Matt

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

5. Re: ver 4.0 question about map

bernie said...

Is a key a name of another map ?

mattlewis said...

Not really. A map is a way to create a, well, a map between two values: a key and a value. The key is what you use to get a value from a particular map. It's similar to what a subscript is for a sequence, except that a key can be any euphoria object.

Matt:
I understand how maps work because I am using them in my code.
If you look in the documentation there is no example for how you
use a nested_get or any explanation of how the nested map is layed out.
The nested map uses some kind of key sequence which is what I am asking about.

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

6. Re: ver 4.0 question about map Atten: Jeremy

Please read "ver 4.0 question about map" thread and respond.

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

7. Re: ver 4.0 question about map Atten: Jeremy

bernie said...

Please read "ver 4.0 question about map" thread and respond.

Yes, we need to fill out the docs a bit more. Was there another question you feel was not answered?

Matt

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

8. Re: ver 4.0 question about map Atten: Jeremy

mattlewis said...
bernie said...

Please read "ver 4.0 question about map" thread and respond.

Yes, we need to fill out the docs a bit more. Was there another question you feel was not answered?

Matt

Thanks, I will wait an see what you come up with.

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

Search



Quick Links

User menu

Not signed in.

Misc Menu