はじめに
関数合成は、関数型プログラミングで使用される技術であり、2つ以上の関数を結合して新しい関数を形成します。Pythonでは、functools.reduce()
関数を使用して、右から左への関数合成を行うことができます。
Skills Graph
%%%%{init: {'theme':'neutral'}}%%%%
flowchart RL
python(("Python")) -.-> python/BasicConceptsGroup(["Basic Concepts"])
python(("Python")) -.-> python/DataStructuresGroup(["Data Structures"])
python(("Python")) -.-> python/FunctionsGroup(["Functions"])
python(("Python")) -.-> python/ModulesandPackagesGroup(["Modules and Packages"])
python/BasicConceptsGroup -.-> python/comments("Comments")
python/DataStructuresGroup -.-> python/tuples("Tuples")
python/FunctionsGroup -.-> python/function_definition("Function Definition")
python/FunctionsGroup -.-> python/keyword_arguments("Keyword Arguments")
python/FunctionsGroup -.-> python/lambda_functions("Lambda Functions")
python/ModulesandPackagesGroup -.-> python/importing_modules("Importing Modules")
python/ModulesandPackagesGroup -.-> python/using_packages("Using Packages")
python/ModulesandPackagesGroup -.-> python/standard_libraries("Common Standard Libraries")
subgraph Lab Skills
python/comments -.-> lab-13607{{"Python を使った関数合成"}}
python/tuples -.-> lab-13607{{"Python を使った関数合成"}}
python/function_definition -.-> lab-13607{{"Python を使った関数合成"}}
python/keyword_arguments -.-> lab-13607{{"Python を使った関数合成"}}
python/lambda_functions -.-> lab-13607{{"Python を使った関数合成"}}
python/importing_modules -.-> lab-13607{{"Python を使った関数合成"}}
python/using_packages -.-> lab-13607{{"Python を使った関数合成"}}
python/standard_libraries -.-> lab-13607{{"Python を使った関数合成"}}
end