1. Dictionaries in Euphoria
- Posted by GreenEuphorian Dec 17, 2012
- 1042 views
Since Euphoria does not explicitly support dictionaries (key/value pairs), I was wondering what would be the best way to implement them manually. Could it simply be via nested binary sequences? What I have in mind is something very simple, like
{ {key, value}, {key, value} }
as a surrogate for the canonical form used in other languages like
{ key: value, key: value }
Does using a binary sequence for each key/value pair (as described above) have any inconvenience as compared to the explicit form with a colon used in other languages?
Thanks
2. Re: Dictionaries in Euphoria
- Posted by jimcbrown (admin) Dec 17, 2012
- 1025 views
GreenEuphorian said...
Since Euphoria does not explicitly support dictionaries (key/value pairs),
Yes it does.
http://openeuphoria.org/docs/std_map.html#_4429_maphashtable