| 单词 |
pattern matching |
| 释义 |
pattern matching Translations
pattern matching
pattern matching (1)A function is defined to take arguments of a particulartype, form or value. When applying the function to its actualarguments it is necessary to match the type, form or value ofthe actual arguments against the formal arguments in somedefinition. For example, the function
length [] = 0length (x:xs) = 1 + length xs
uses pattern matching in its argument to distinguish a nulllist from a non-null one.
There are well known algorithm for translating patternmatching into conditional expressions such as "if" or "case".E.g. the above function could be transformed to
length l = case l of[] -> 0x:xs -> 1 : length xs
Pattern matching is usually performed in textual order thoughthere are languages which match more specific patterns beforeless specific ones.pattern matching (2)Descriptive of a type of language or utility such as awkor Perl which is suited to searching for strings or patternsin input data, usually using some kind of regular expression.AcronymsSeepacemaker |
| 随便看 |
- koryphaeus
- korytsa
- koryun
- k orzechowski
- korzeniowski
- korzeniowski, jozef
- korzeniowski, józef
- korzhenevskaia peak
- korzhenevskii glacier
- korzhenevskii, nikolai
- korzhenevskii, nikolai leopoldovich
- korzhev, gelii
- korzhev, gelii mikhailovich
- korzhinskii, dmitrii
- korzhinskii, dmitrii sergeevich
- korzhinskii, sergei
- korzhinskii, sergei ivanovich
- korzh query builder
- korzh, vasilii
- korzh, vasilii zakharovich
- korzon
- korzon, tadeusz
- korzukhin, alekseiivanovich
- korzybski
- korzybski, alfred habdank
|