Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

Uso de lambda

def myfunc(n):
  return lambda a : a * n

mydoubler = myfunc(2)
mytripler = myfunc(3)

print(mydoubler(11))
print(mytripler(11))
Source by transforma.fusalmo.org #
 
PREVIOUS NEXT
Tagged: #Uso #de #lambda
ADD COMMENT
Topic
Name
8+9 =