What’s the difference between a functor and a closure?

前端 未结 0 1673
旧巷少年郎
旧巷少年郎 2020-12-05 15:08

Basically from my understanding... a functor is a container that contains a value and then a mapping (or function) that maps to a new value.

A closure is similar. It

相关标签:
回答
  • 消灭零回复
提交回复
热议问题