Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
gct
· 2y ago · 0 comments
A thunk is just a function with no arguments representing a computation. In C++:
int a=1, b=2; auto thunk = [=]() { return a+b; }
Comments
[–]
pmarreck
2y ago
so a deferred evaluation, like (in elixir) wrapping a computation in an fn (lambda of 0 arity)