Hacker News new | past | comments | ask | show | jobs | submit login

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

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



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




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: