How can you dispatch on Iterator eltype including generators?

If you need to precompute something once, but hide that from the interface, you may find

useful.