I want to write simple function but I am little confused. I just want to return dic value as below but due to closure I can\'t. Only solution is reference to a
dic