Skip to content

Instantly share code, notes, and snippets.

@atimca
Created May 18, 2020 12:57
Show Gist options
  • Save atimca/d6dfa5867cd2ca09a49ea839b4ac2ab2 to your computer and use it in GitHub Desktop.
Save atimca/d6dfa5867cd2ca09a49ea839b4ac2ab2 to your computer and use it in GitHub Desktop.
func reduce<Result>(_ initialResult: Result, _ nextPartialResult: (Result, Element) -> Result) -> Result
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment