Skip to content

Instantly share code, notes, and snippets.

@eMdOS
Created May 17, 2020 19:30
Show Gist options
  • Save eMdOS/f848fef545691103d81b4ded6af5f91a to your computer and use it in GitHub Desktop.
Save eMdOS/f848fef545691103d81b4ded6af5f91a to your computer and use it in GitHub Desktop.
extension String: Monoid {
public static let empty: String = ""
}
extension Array: Monoid {
public static var empty: Array { [] }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment