Skip to content

Commit

Permalink
Stepwise functions from Tidal (#1060)
Browse files Browse the repository at this point in the history
* rename new stepwise functions to match tidal, adding s_expand and s_contract
* created a `stepJoin` for stepwise patternification
  • Loading branch information
yaxu authored Apr 21, 2024
1 parent a194180 commit 0a3694f
Show file tree
Hide file tree
Showing 5 changed files with 344 additions and 78 deletions.
4 changes: 4 additions & 0 deletions packages/core/fraction.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
};
Expand Down
Loading

0 comments on commit 0a3694f

Please sign in to comment.