From 3668e37eab76a7af5939b005e9fc63386a2a2d40 Mon Sep 17 00:00:00 2001 From: Michael Jones Date: Mon, 9 Aug 2021 18:19:12 +0100 Subject: 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. --- src/gleam/string_builder.gleam | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'src') 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 /// -- cgit v1.2.3