memrootじしょ
英和翻訳
First-class function
First-class function
/ˈfɜːrstˌklæs ˈfʌŋkʃən/
ファーストクラス・ファンクション
1.
プログラミングにおいて、関数が他のデータ型(数値、文字列など)と同じように扱えること。例えば、変数に代入したり、他の関数に引数として渡したり、他の関数から戻り値として返したりできる特性。
プログラミングにおける関数の概念で、関数が数値や文字列のような一般的なデータ型と同じレベルで扱える能力を指します。これにより、関数をより柔軟に操作し、複雑な処理を簡潔に記述できるようになります。
In
JavaScript,
functions
are
first-class
citizens,
meaning
they
can
be
passed
as
arguments
to
other
functions.
(JavaScriptでは、関数は第一級オブジェクトであり、これは他の関数に引数として渡せることを意味します。)
In JavaScript
JavaScriptにおいて
functions are first-class citizens
関数は第一級オブジェクトです
meaning
これは意味します
they can be passed
それらは渡されることができます
as arguments
引数として
to other functions
他の関数へ
A
higher-order
function
can
return
a
first-class
function
as
its
result.
(高階関数は、その結果として第一級関数を返すことができます。)
A higher-order function
高階関数は
can return
返すことができます
a first-class function
第一級関数を
as its result
その結果として
You
can
assign
a
first-class
function
to
a
variable,
just
like
any
other
value.
(他の値と同じように、第一級関数を変数に割り当てることができます。)
You can assign
あなたは割り当てることができます
a first-class function
第一級関数を
to a variable
変数に
just like any other value
他のどんな値と同じように
関連
Higher-order function
Lambda expression
Closure
Functional programming
Anonymous function