mirror of
https://github.com/eliasstepanik/strudel-docker.git
synced 2026-01-23 19:48:31 +00:00
add Pattern.round
This commit is contained in:
parent
52da8552ef
commit
0ef62708ab
@ -505,6 +505,10 @@ class Pattern {
|
|||||||
return this._asNumber()._opleft(other, a => b => a / b)
|
return this._asNumber()._opleft(other, a => b => a / b)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
round() {
|
||||||
|
return this._asNumber().fmap((v) => Math.round(v));
|
||||||
|
}
|
||||||
|
|
||||||
union(other) {
|
union(other) {
|
||||||
return this._opleft(other, a => b => Object.assign({}, a, b))
|
return this._opleft(other, a => b => Object.assign({}, a, b))
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user