functor
|fun-ctor|
🇺🇸
/ˈfʌŋktər/
🇬🇧
/ˈfʌŋktə/
structure-preserving mapping / function-like entity
構造を保存する写像・関数のように振る舞う存在
語源
「functor」は英語に由来し、語幹「function」に能格を示す接尾辞「-or」を付けて作られた。'function'は最終的にラテン語の'functio'に由来し、語根'fungi'は「実行する、行う」を意味した。
『functor』は20世紀に(特にEilenbergとMac Laneによる圏論で)英語で造られた語で、'function'+'-or'の形で導入された。'function'はラテン語'functio'から古仏語や中英語を経て現代英語になり、『functor』はそこから派生して数学やプログラミングで使われる専門用語になった。
元来は「実行・遂行」を表していたが、派生語としての『functor』は「関数のように振る舞うもの」「構造を保存する写像」などの専門的意味に変化した。
品詞ごとの意味
名詞 1
in category theory, a mapping between categories that sends objects to objects and morphisms to morphisms while preserving identities and composition.
圏論における、対象と射を別の圏へ写し(射の合成と恒等射を)保存する写像
In category theory, a functor maps objects and morphisms from one category to another while preserving composition.
圏論では、functorはある圏の対象と射を別の圏に写し、射の合成を保存する。
同意語
名詞 2
in functional programming (especially Haskell), a type class (or type) that supports a mapping operation (fmap), allowing a function to be applied over values inside the type.
関数型プログラミング(特にHaskell)で、fmapのような写像操作を提供し、型の内部の値に関数を適用できる型クラス/型
In Haskell, a Functor defines the fmap operation so you can apply a function over wrapped values.
Haskellでは、Functorはfmap操作を定義し、包まれた値に関数を適用できるようにする。
同意語
名詞 3
in general programming (e.g., C++), a function object — an object that can be invoked like a function because it implements a call operator.
一般的なプログラミング(例: C++)で、呼び出し演算子を実装して関数のように呼び出せるオブジェクト(関数オブジェクト)
In C++, a functor is an object that implements operator() so it can be called like a function.
C++では、functorはoperator()を実装したオブジェクトで、関数のように呼び出せる。
同意語
最終更新時刻: 2025/12/24 02:25
