astl
Version:
AssemblyScript-STL (Standard Template Library, migrated from the C++)
35 lines (30 loc) • 522 B
text/typescript
export function equal_to<T>(x: T, y: T): boolean
{
return x == y;
}
export function not_equal_to<T>(x: T, y: T): boolean
{
return x != y;
}
export function less<T>(x: T, y: T): boolean
{
return x < y;
}
export function less_equal<T>(x: T, y: T): boolean
{
return x <= y;
}
export function greater<T>(x: T, y: T): boolean
{
return x > y;
}
export function greater_equal<T>(x: T, y: T): boolean
{
return x >= y;
}