astl
Version:
AssemblyScript-STL (Standard Template Library, migrated from the C++)
25 lines (22 loc) • 544 B
text/typescript
export class Pair<First, Second>
{
public first: First;
public second: Second;
public constructor(first: First, second: Second)
{
this.first = first;
this.second = second;
}
public equals(obj: Pair<First, Second>): boolean
{
return this.first == obj.first && this.second == obj.second;
}
protected __non_equals(obj: Pair<First, Second>): boolean
{
return !this.equals(obj);
}
}