Files
codeql/python/ql/src/Expressions/UnnecessaryLambda.py
2018-11-19 15:10:42 +00:00

7 lines
144 B
Python

import math
def call_with_x_squared(x, function):
x = x*x
return function(x)
print call_with_x_squared(2, lambda x: math.factorial(x))