Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python linkedhashmap

dic = {1: 'one', 2: 'two'}
for k, v in dic.iteritems():
	 print k, v

#you can order the dic in the order of the insertion using ordereddict module.

d = ordereddict(dic, relax=True)
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #python #linkedhashmap
ADD COMMENT
Topic
Name
7+8 =