Created
May 17, 2020 19:39
-
-
Save eMdOS/25fe07dda12f9c5846111ac9a5f2e1c7 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public func concat<M: Monoid>(_ elements: [M]) -> M { | |
elements.reduce(.empty, <>) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment