def createClosure(int x) fun(int) int { return lambda(int y) int { x + y } } myVar = createClosure(5) puts myVar(3)