1. Dictionaries in Euphoria

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

new topic     » topic index » view message » categorize

2. Re: Dictionaries in Euphoria

GreenEuphorian said...

Since Euphoria does not explicitly support dictionaries (key/value pairs),

Yes it does.

http://openeuphoria.org/docs/std_map.html#_4429_maphashtable

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

Search



Quick Links

User menu

Not signed in.

Misc Menu