Thunk (source code)

= Thunk
{wiki}

A suspended computation together with the information needed to evaluate it later. In <lazy evaluation> by need, forcing a <thunk> computes and records its result, so subsequent demands can reuse it. Deferral and memoization are distinct: a merely delayed computation need not share its result unless its evaluation mechanism provides that sharing.