You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
class Pair<T1, T2>{
|
|
public first: T1
|
|
public second: T2
|
|
|
|
constructor(first: T1, second: T2){
|
|
this.first=first
|
|
this.second=second
|
|
}
|
|
|
|
equals(other: Pair<T1, T2>): boolean {
|
|
return this.first === other.first && this.second === other.second;
|
|
}
|
|
}
|
|
|
|
export default Pair |