http library has several good examples a simple one that can be part of path routers these closures can themselves be interfaces as this very common example: but another version that uses concrete types, and the distinction between them is that the data provided by the closure is - very often, builtin types:

Replies (2)

no problem... it's something i've wanted to do for a long time, help people learn how to do this stuff... it all took me a lot of time to get the opportunity to teach myself how to use it but because i have that experience and knowledge now, i can help you find the right methodology sooner because often times that's just knowing it exists