Skip to content

Commit

Permalink
Merge pull request #3 from paulyoung/stdlib
Browse files Browse the repository at this point in the history
Update operator definitions.
  • Loading branch information
paulyoung committed Oct 6, 2015
2 parents 2e3f310 + 07e9b6b commit 2de6ef4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
5 changes: 2 additions & 3 deletions OptionalEquatableCollection/Array.swift
@@ -1,6 +1,5 @@
// Mark: - Equatable

public func == <T: Equatable>(lhs: Array<T>?, rhs: Array<T>?) -> Bool {
@warn_unused_result
public func == <Element: Equatable>(lhs: Array<Element>?, rhs: Array<Element>?) -> Bool {
switch (lhs, rhs) {
case let (.Some(lhs), .Some(rhs)):
return lhs == rhs
Expand Down
5 changes: 2 additions & 3 deletions OptionalEquatableCollection/Dictionary.swift
@@ -1,6 +1,5 @@
// Mark: - Equatable

public func == <T: Equatable, U: Equatable>(lhs: Dictionary<T, U>?, rhs: Dictionary<T, U>?) -> Bool {
@warn_unused_result
public func == <Key: Equatable, Value: Equatable>(lhs: [Key: Value]?, rhs: [Key: Value]?) -> Bool {
switch (lhs, rhs) {
case let (.Some(lhs), .Some(rhs)):
return lhs == rhs
Expand Down

0 comments on commit 2de6ef4

Please sign in to comment.