aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLouis Pilfold <louis@lpil.uk>2020-07-10 21:13:36 +0100
committerLouis Pilfold <louis@lpil.uk>2020-07-10 21:13:36 +0100
commit0cff914b427e2d37a3b889e0f9586ab59cef3d39 (patch)
tree85dd6f98c2630f69e0c6ea8bbc56a60fb01117c4 /src
parent28fdf1078ca67f224944bffebe46151ba4a9234a (diff)
downloadgleam_stdlib-0cff914b427e2d37a3b889e0f9586ab59cef3d39.tar.gz
gleam_stdlib-0cff914b427e2d37a3b889e0f9586ab59cef3d39.zip
bit_builder.from_string
Diffstat (limited to 'src')
-rw-r--r--src/gleam/bit_builder.gleam7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/gleam/bit_builder.gleam b/src/gleam/bit_builder.gleam
index dc066ae..bcc4c4c 100644
--- a/src/gleam/bit_builder.gleam
+++ b/src/gleam/bit_builder.gleam
@@ -69,6 +69,13 @@ pub external fn append_string(to: BitBuilder, suffix: String) -> BitBuilder =
pub external fn concat(List(BitBuilder)) -> BitBuilder =
"gleam_stdlib" "identity"
+/// Create a new builder from a string.
+///
+/// Runs in constant time.
+///
+pub external fn from_string(String) -> BitBuilder =
+ "gleam_stdlib" "wrap_list"
+
/// Create a new builder from a bit string.
///
/// Runs in constant time.