1. ver 4.0 question about map
- Posted by bernie Oct 26, 2008
- 964 views
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.
2. Re: ver 4.0 question about map
- Posted by mattlewis (admin) Oct 26, 2008
- 936 views
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
3. Re: ver 4.0 question about map
- Posted by bernie Oct 26, 2008
- 927 views
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 ?
4. Re: ver 4.0 question about map
- Posted by mattlewis (admin) Oct 26, 2008
- 950 views
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
5. Re: ver 4.0 question about map
- Posted by bernie Oct 26, 2008
- 942 views
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:
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.
6. Re: ver 4.0 question about map Atten: Jeremy
- Posted by bernie Oct 27, 2008
- 912 views
Please read "ver 4.0 question about map" thread and respond.
7. Re: ver 4.0 question about map Atten: Jeremy
- Posted by mattlewis (admin) Oct 27, 2008
- 888 views
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
8. Re: ver 4.0 question about map Atten: Jeremy
- Posted by bernie Oct 27, 2008
- 946 views
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.