diff options
author | Michael Jones <m.pricejones@gmail.com> | 2021-08-09 18:19:12 +0100 |
---|---|---|
committer | Louis Pilfold <louis@lpil.uk> | 2021-08-09 19:00:22 +0100 |
commit | 3668e37eab76a7af5939b005e9fc63386a2a2d40 (patch) | |
tree | 6c0ee29c22dbeccba5619eeb61db608f461209a0 | |
parent | bdc149e20483bf0769062a270728d7c863ff15b2 (diff) | |
download | gleam_stdlib-3668e37eab76a7af5939b005e9fc63386a2a2d40.tar.gz gleam_stdlib-3668e37eab76a7af5939b005e9fc63386a2a2d40.zip |
Restore the string builder examples
They don't work as far as I can tell but I assume we're rather have them
in than out for the moment.
-rw-r--r-- | src/gleam/string_builder.gleam | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/gleam/string_builder.gleam b/src/gleam/string_builder.gleam index 004903d..0a90737 100644 --- a/src/gleam/string_builder.gleam +++ b/src/gleam/string_builder.gleam @@ -288,6 +288,12 @@ if javascript { /// /// ## Examples /// +/// > from_strings(["a", "b"]) == new("ab") +/// False +/// +/// > is_equal(from_strings(["a", "b"]), new("ab")) +/// True +/// /// pub fn is_equal(a: StringBuilder, b: StringBuilder) -> Bool { do_is_equal(a, b) @@ -307,6 +313,12 @@ if javascript { /// /// ## Examples /// +/// > new("ok") |> is_empty +/// False +/// +/// > new("") |> is_empty +/// True +/// /// > from_strings([]) |> is_empty /// True /// |