. import tables #constructs an array of tuples #{"key_1": "value_1", "key_2": "value_2"} proc `%`[T,G,H](a : array[T,(G,H)]) : Table[G,H] = a.toTable() var a = %{"key_1": "value_1", "key_2": "value_2"} Run
- Macro to create a dictionary (table) like in python! mrhdias
- Re: Macro to create a dictionary (table) like in pytho... solo989
- Re: Macro to create a dictionary (table) like in p... mrhdias
- Re: Macro to create a dictionary (table) like ... zevv
- Re: Macro to create a dictionary (table) l... mratsim
- Re: Macro to create a dictionary (tab... juancarlospaco
- Re: Macro to create a dictionary ... treeform
- Re: Macro to create a diction... SolitudeSF
- Re: Macro to create a diction... cblake
- Re: Macro to create a diction... mrhdias
- Re: Macro to create a diction... miran
- Re: Macro to create a diction... cblake