Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
具体的には、このように
f(x) { return x+5; } g(x, y) { return 2*x + y; } main() { return f(g(1, 2)); }
関数 main の戻り値のラムダ式は何ですか?
パイソンでは:
lambda x, y: (2*x + y) + 5
1, 2 で呼び出された場合は 9 を返します。