Y
Hacker News
new
|
ask
|
show
|
jobs
by
gct
730 days 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; }
1 comments
pmarreck
724 days ago
so a deferred evaluation, like (in elixir) wrapping a computation in an fn (lambda of 0 arity)
link