diff options
Diffstat (limited to 'stdlib/source/lux/data/text/buffer.lux')
-rw-r--r-- | stdlib/source/lux/data/text/buffer.lux | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/stdlib/source/lux/data/text/buffer.lux b/stdlib/source/lux/data/text/buffer.lux index 89aaebece..e14013a29 100644 --- a/stdlib/source/lux/data/text/buffer.lux +++ b/stdlib/source/lux/data/text/buffer.lux @@ -2,6 +2,8 @@ [lux #* [data ["." product] + [number + ["n" nat]] [text ["%" format (#+ format)]] [collection @@ -47,7 +49,7 @@ (exec (Appendable::append (:coerce CharSequence chunk) builder) builder)))] - (:abstraction [(n/+ (//.size chunk) capacity) + (:abstraction [(n.+ (//.size chunk) capacity) (|>> transform (append! chunk))]))} ## default (|> buffer :representation (row.add chunk) :abstraction))) @@ -58,7 +60,7 @@ (|> buffer :representation product.left)} ## default (row;fold (function (_ chunk total) - (n/+ (//.size chunk) total)) + (n.+ (//.size chunk) total)) 0 (:representation buffer)))) |