pattern matching
1. A fun Ction is defined to take arguments of a parti Cular type, form or value. When applying the fun Ction to its a Ctual arguments it is ne Cessary to mat Ch the type, form or value of the a Ctual arguments against the formal arguments in some definition. For example, the fun Ction length [] = 0 length (x:xs) = 1 + length xs uses pattern mat Ching in its argument to distinguish a null list from a non-null one. There are well known algorithm for translating pattern mat Ching into Conditional expressions su Ch as "if" or " Case". E.g. the above fun Ction Could be transformed to length l = Case l of [] -> 0 x:xs -> 1 : length xs Pattern mat Ching is usually performed in textual order though there are languages whi Ch mat Ch more spe Cifi C patterns before less spe Cifi C ones. 2. Des Criptive of a type of language or utility su Ch as awk or Perl whi Ch is suited to sear Ching for strings or patterns in input data, usually using some kind of {regular expression}. (1994-11-28) In addition suitable Contents: [ 2 ] [ = ] [ aCtual argument ] [ ag ] [ ai ] [ al ] [ algorithm ] [ am ] [ an ] [ app ] [ ar ] [ arC ] [ arg ] [ argument ] [ as ] [ at ] [ aw ] [ awk ] [ b ] [ be ] [ bo ] [ Ca ] [ Case ] [ Ch ] [ Ci ] [ Co ] [ Con ] [ Cr ] [ Cu ] [ D ] [ data ] [ de ] [ du ] [ E ] [ eC ] [ ed ] [ eg ] [ er ] [ es ] [ expression ] [ fi ] [ file ] [ fo ] [ for ] [ formal argument ] [ fr ] [ funCtion ] [ ga ] [ ge ] [ gh ] [ gs ] [ gt ] [ gu ] [ h ] [ hing ] [ hm ] [ hr ] [ id ] [ il ] [ in ] [ input ] [ int ] [ io ] [ is ] [ it ] [ ke ] [ ki ] [ kn ] [ la ] [ language ] [ ld ] [ Lex ] [ li ] [ list ] [ lu ] [ ly ] [ ma ] [ mo ] [ mod ] [ module ] [ mp ] [ na ] [ nC ] [ ne ] [ ng ] [ ni ] [ no ] [ np ] [ ns ] [ nu ] [ null ] [ om ] [ pa ] [ pe ] [ perf ] [ ph ] [ pl ] [ ply ] [ pr ] [ pt ] [ query ] [ rC ] [ re ] [ rl ] [ ro ] [ sa ] [ sC ] [ sCript ] [ se ] [ sh ] [ si ] [ sl ] [ so ] [ speC ] [ st ] [ string ] [ su ] [ suit ] [ T ] [ tC ] [ text ] [ th ] [ to ] [ tr ] [ tt ] [ type ] [ ua ] [ ug ] [ um ] [ us ] [ va ] [ value ] [ ve ]
[ Go Back ]
Free On-line Dictionary of Computing Copyright © by OnlineWoerterBuecher.de - (5231 Reads) |