func explorefrogs(advice string, bypass bool) { var untoldfacts []string; var restartwithcleanslate = func() { untoldfacts = []string{"frogs use their eyes to help swallow food", "some frog species can jump over 20 times their own body length", "frogs absorb water through their skin so they don't need to drink"}; }; if bypass { restartwithcleanslate(); } for _, fact := range untoldfacts { print("according to", advice, ", here's an untold fact about frogs:", fact); } }