diff options
| author | Marshall Lochbaum <mwlochbaum@gmail.com> | 2021-12-20 11:23:59 -0500 |
|---|---|---|
| committer | Marshall Lochbaum <mwlochbaum@gmail.com> | 2021-12-20 11:23:59 -0500 |
| commit | b43c7a1acc5e3989a86098c7c566e85404c40ae5 (patch) | |
| tree | d1214725295afe4f604c4acbaa28a01ff67c6d06 /docs/bqn.js | |
| parent | e384f778e39d910ede11b93bfe5ea3e5668198ec (diff) | |
Avoid changing fill of existing array in fill_by
Diffstat (limited to 'docs/bqn.js')
| -rw-r--r-- | docs/bqn.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/docs/bqn.js b/docs/bqn.js index 15ff86da..0f57b55a 100644 --- a/docs/bqn.js +++ b/docs/bqn.js @@ -320,6 +320,7 @@ let fill_by = (f,g) => (x,w) => { let a2fill = x => isfunc(x)?x:isnum(x)?0:' '; let xf=x.sh?x.fill:a2fill(x); if (r.sh&&has(xf)) { + r = arr(r.slice(),r.sh); try { let wf = !has(w) ? w : !w.sh ? a2fill(w) |
