Stepwise functions from Tidal (#1060)

* rename new stepwise functions to match tidal, adding s_expand and s_contract
* created a `stepJoin` for stepwise patternification
This commit is contained in:
Alex McLean 2024-04-21 21:17:07 +01:00 committed by GitHub
parent a194180130
commit 0a3694fb82
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 344 additions and 78 deletions

View file

@ -47,6 +47,10 @@ Fraction.prototype.eq = function (other) {
return this.compare(other) == 0;
};
Fraction.prototype.ne = function (other) {
return this.compare(other) != 0;
};
Fraction.prototype.max = function (other) {
return this.gt(other) ? this : other;
};