scope snippetTypeName. static S #data = [[ ]]; static Map #map; static S snippetTypeName(int type) { if (map == null) map = pairsToMap(map listToPair(regexpAllGroups(">\\[(\\d+)\\] ([^>]+)<", data))); ret map.get(type); }