top | item 40654059

(no title)

gct | 1 year ago

A thunk is just a function with no arguments representing a computation. In C++:

  int a=1, b=2; auto thunk = [=]() { return a+b; }

discuss

order

pmarreck|1 year ago

so a deferred evaluation, like (in elixir) wrapping a computation in an fn (lambda of 0 arity)