IDL> ha=orderedhash('a',1,'b',2)
IDL> foreach h,ha,k do print, k+': '+string(h)
a: 1
b: 2
IDL> out1=orderedhash()
IDL> foreach h,ha,k do out1[k]= k+': '+string(h)
IDL> out2=ha.map(lambda("h,k:k+': '+string(h)"),ha.keys())
% Type conversion error: Unable to convert given STRING to Long.
% Detected at: LIST::_OVERLOADBRACKETSRIGHTSIDE 1094
% Type conversion error: Unable to convert given STRING to Long.
% Detected at: LIST::_OVERLOADBRACKETSRIGHTSIDE 1105
% Type conversion error: Unable to convert given STRING to Long.
% Detected at: LIST::_OVERLOADBRACKETSRIGHTSIDE 1105
% Type conversion error: Unable to convert given STRING to Long64.
% Detected at: LIST::_OVERLOADBRACKETSRIGHTSIDE 1114
% Type conversion error: Unable to convert given STRING to Long.
% Detected at: LIST::_OVERLOADBRACKETSRIGHTSIDE 1094
% Type conversion error: Unable to convert given STRING to Long.
% Detected at: LIST::_OVERLOADBRACKETSRIGHTSIDE 1105
% Type conversion error: Unable to convert given STRING to Long.
% Detected at: LIST::_OVERLOADBRACKETSRIGHTSIDE 1105
% Type conversion error: Unable to convert given STRING to Long64.
% Detected at: LIST::_OVERLOADBRACKETSRIGHTSIDE 1114
IDL> out2
{
"a": "a: 1",
"b": "a: 2"
}
IDL> out1
{
"a": "a: 1",
"b": "b: 2"
}
IDL> !version
{
"ARCH": "x86_64",
"OS": "linux",
"OS_FAMILY": "unix",
"OS_NAME": "linux",
"RELEASE": "8.5",
"BUILD_DATE": "Jul 7 2015",
"MEMORY_BITS": 64,
"FILE_OFFSET_BITS": 64
}