Skip to content

Commit

Permalink
public init
Browse files Browse the repository at this point in the history
  • Loading branch information
Kazuhiro Hayashi committed Feb 25, 2017
1 parent 2a20c79 commit 7b21032
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion EditDistance.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,8 @@
children = (
6EBF3E2D1E58543F0025443A /* EditDistance.h */,
6EBF3E2E1E58543F0025443A /* Info.plist */,
6EBF3E441E58549A0025443A /* EditScript.swift */,
6EBF3E901E59C2FB0025443A /* EditDistance.swift */,
6EBF3E441E58549A0025443A /* EditScript.swift */,
6E0301631E5F2DA300E24C49 /* Converter */,
6EBF3E4E1E58565A0025443A /* Algorithm */,
);
Expand Down
5 changes: 5 additions & 0 deletions EditDistance/EditDistanceContainer.swift
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,11 @@ import Foundation
public struct EditDistanceContainer<T: Comparable>: Equatable {
public let indexPath: IndexPath
public let element: T

public init(indexPath: IndexPath, element: T) {
self.indexPath = indexPath
self.element = element
}
}

public func ==<T: Comparable>(lhs: EditDistanceContainer<T>, rhs: EditDistanceContainer<T>) -> Bool {
Expand Down

0 comments on commit 7b21032

Please sign in to comment.