Tag: first class function

0

First class function

first class function 조건 argument(parameter) - 매개 변수 함수 자체를 매개변수로 다른 함수에 전달1234567891011def f(a, b): return a + bdef g(func, c, d): return func(c, d)a = 10b = 20g(f, a, b) # 함수 자체를 매개변수로 전달&