Skip to content

Commit b4533bf

Browse files
author
Simon Whitaker
committed
Implement ExpressibleByArrayLiteral protocol
1 parent ad839c4 commit b4533bf

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

Multiset/Multiset.playground/Sources/Multiset.swift

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,3 +75,10 @@ extension Multiset: Equatable {
7575
return true
7676
}
7777
}
78+
79+
// MARK: - ExpressibleByArrayLiteral
80+
extension Multiset: ExpressibleByArrayLiteral {
81+
public init(arrayLiteral elements: T...) {
82+
self.init(elements)
83+
}
84+
}

0 commit comments

Comments
 (0)