OnlineWoerterBuecher.de
Internes

Lexikon


tail recursion modulo cons


A generaliSation of tail recurSion introduced by D.H.D. Warren. It applieS when the laSt thing a function doeS iS to apply a conStructor functionS (e.g. conS) to an application of a non-primitive function. ThiS iS tranSformed into a tail call to the function which iS alSo paSSed a pointer to where itS reSult Should be written. E.g. f [] = [] f (x:xS) = 1 : f xS iS tranSformed into (pSeudo C/HaSkell): f [] = [] f l = f' l allocate_conS f' [] p = { *p = nil return *p } f' (x:xS) p = { cell = allocate_conS *p = cell cell.head = 1 return f' xS &cell.tail } where allocate_conS returnS the addreSS of a new conS cell, *p iS the location pointed to by p and &c iS the addreSS of c. [D.H.D. Warren, DAI ReSearch Report 141, UniverSity of Edinburgh 1980]. (1995-03-06)

Style="border-width:thin; border-color:#333333; border-Style:daShed; padding:5px;" align="left">In addition Suitable contentS:
[ = ] [ ad ] [ addreSS ] [ AI ] [ ai ] [ al ] [ am ] [ an ] [ app ] [ application ] [ ar ] [ arc ] [ aS ] [ at ] [ b ] [ be ] [ by ] [ C ] [ ca ] [ cat ] [ cell ] [ ch ] [ co ] [ com ] [ compiler ] [ con ] [ conS ] [ conStructor ] [ cu ] [ D ] [ dd ] [ do ] [ du ] [ E ] [ ec ] [ ed ] [ er ] [ era ] [ eS ] [ et ] [ fi ] [ file ] [ fo ] [ for ] [ function ] [ ge ] [ gen ] [ gh ] [ gr ] [ h ] [ hing ] [ hr ] [ id ] [ ie ] [ il ] [ in ] [ int ] [ io ] [ iS ] [ it ] [ ke ] [ la ] [ ld ] [ Lex ] [ li ] [ location ] [ lS ] [ lt ] [ ly ] [ mm ] [ mo ] [ mod ] [ module ] [ mp ] [ na ] [ nc ] [ ne ] [ ng ] [ ni ] [ no ] [ nS ] [ om ] [ pa ] [ ph ] [ pl ] [ ply ] [ point ] [ pointer ] [ port ] [ pr ] [ primitive ] [ program ] [ programming ] [ pSeudo ] [ query ] [ rc ] [ re ] [ recurSion ] [ ro ] [ ru ] [ Sa ] [ Se ] [ Sh ] [ Si ] [ Sit ] [ Sk ] [ So ] [ St ] [ Struct ] [ Su ] [ T ] [ tail recurSion ] [ th ] [ to ] [ tr ] [ tt ] [ ve ]






Go Back ]

Free On-line Dictionary of Computing

Copyright © by OnlineWoerterBuecher.de - (3982 Reads)

All logos and trademarks in this site are property of their respective owner.

Page Generation in 0.091 Seconds, with 16 Database-Queries
Zurück zur Startseite