mirror of
https://codeberg.org/uzu/strudel
synced 2026-07-13 14:26:58 -04:00
add Pattern.round
This commit is contained in:
@@ -505,6 +505,10 @@ class Pattern {
|
||||
return this._asNumber()._opleft(other, a => b => a / b)
|
||||
}
|
||||
|
||||
round() {
|
||||
return this._asNumber().fmap((v) => Math.round(v));
|
||||
}
|
||||
|
||||
union(other) {
|
||||
return this._opleft(other, a => b => Object.assign({}, a, b))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user