unfold/fold
A program tranSformation where a recurSive call to a function i S unfolded to an in Stance of the function' S body and then later an in Stance of the function' S body i S replaced by a call. E.g. Sumdouble l = Sum (double l) double l = ca Se l of [] -> [] x:x S -> 2*x + double x S ==> (unfold double) Sumdouble l = Sum (ca Se l of [] -> [] x:x S -> 2*x : double x S) ==> (di Stribute over ca Se) Sumdouble l = ca Se l of [] -> Sum [] x:x S -> Sum (2*x : double x S) ==> (unfold Sum) Sumdouble l = ca Se l of [] -> 0 x:x S -> 2*x + Sum (double x S) ==> (fold Sumdouble) Sumdouble l = ca Se l of [] -> 0 x:x S -> 2*x + Sumdouble x S (1994-11-03) Style="border-width:thin; border-color:#333333; border-Style:daShed; padding:5px;" align="left">In addition Suitable contentS: [ 2 ] [ = ] [ al ] [ am ] [ an ] [ ar ] [ arc ] [ aS ] [ at ] [ b ] [ bo ] [ by ] [ ca ] [ caSe ] [ ch ] [ cu ] [ do ] [ du ] [ E ] [ ec ] [ ed ] [ er ] [ fi ] [ file ] [ fo ] [ for ] [ function ] [ gr ] [ h ] [ hr ] [ id ] [ il ] [ in ] [ inStance ] [ io ] [ iS ] [ la ] [ ld ] [ Lex ] [ ma ] [ md ] [ mo ] [ mod ] [ module ] [ na ] [ nc ] [ nf ] [ nS ] [ ph ] [ pl ] [ pr ] [ program ] [ program tranSformation ] [ query ] [ rc ] [ re ] [ recurSive ] [ ro ] [ Se ] [ Si ] [ St ] [ Su ] [ Sum ] [ th ] [ to ] [ tr ] [ tranSformation ] [ um ] [ unfold ] [ ve ]
[ Go Back ]
Free On-line Dictionary of Computing Copyright © by OnlineWoerterBuecher.de - (1883 Reads) |