memrootじしょ
英和翻訳
pattern matching
pattern matching
/ˈpætərn ˌmætʃɪŋ/
パターンマッチング
1.
あるデータ構造(文字列、リスト、木など)が特定のパターン(規則、テンプレート)に合致するかどうかを検査し、合致した場合にそのデータの一部を抽出したり、特定の処理を実行したりする手法。主にプログラミングにおいて、データの構造を識別し、その構造に応じた処理を行う際に用いられます。
プログラミングにおいて、文字列やデータ構造の中から特定の形式や条件に合う部分を識別し、それに基づいて処理を行うための強力な手法です。これにより、コードの記述が簡潔になり、データの抽出や変換が容易になります。特に、関数型プログラミング言語で頻繁に使用され、コードの可読性と堅牢性を高めます。
Pattern
matching
is
a
powerful
feature
in
functional
programming
languages.
(パターンマッチングは、関数型プログラミング言語における強力な機能です。)
Pattern matching
特定のパターンに合致するかを検査する手法。ここではその概念自体を指します。
is
~である、と状態を表す動詞です。
a powerful feature
「強力な機能」を意味します。
in functional programming languages
「関数型プログラミング言語において」という意味の句です。
Using
pattern
matching,
you
can
elegantly
deconstruct
complex
data
structures.
(パターンマッチングを使うと、複雑なデータ構造をエレガントに分解できます。)
Using pattern matching
「パターンマッチングを使って」という意味です。
you can
「あなたは~できる」という能力や可能性を示します。
elegantly
「優雅に、巧妙に」という意味の副詞です。
deconstruct complex data structures
「複雑なデータ構造を分解する」という意味の動詞句です。
Many
modern
programming
languages
incorporate
some
form
of
pattern
matching.
(多くの現代的なプログラミング言語は、何らかの形のパターンマッチングを取り入れています。)
Many modern programming languages
「多くの現代的なプログラミング言語」を指します。
incorporate
「取り入れる、組み込む」という意味の動詞です。
some form of
「何らかの形の」という意味の表現です。
pattern matching
特定のパターンに合致するかを検査する手法を指します。
The
compiler
optimizes
code
based
on
the
results
of
pattern
matching.
(コンパイラは、パターンマッチングの結果に基づいてコードを最適化します。)
The compiler
「コンパイラ」とは、プログラムを機械語に変換するソフトウェアのことです。
optimizes code
「コードを最適化する」という意味です。
based on
「~に基づいて」という意味の句です。
the results of pattern matching
「パターンマッチングの結果」を意味します。
関連
Regular expression
Regex
Wildcard
String matching
Data mining
Pattern recognition
Search algorithm
Finite automata
Lexical analysis