pub fn gen<'env, F, T>(f: F) -> Gen<F>where F: FnOnce(&Scope<'env>) -> T,
Helper function to create a Gen.
This is mostly useful to improve type inference when using a function to encapsulate references.