aboutsummaryrefslogtreecommitdiff
path: root/src/std/string.gleam
diff options
context:
space:
mode:
authorLouis Pilfold <louis@lpil.uk>2019-06-25 22:48:07 +0100
committerLouis Pilfold <louis@lpil.uk>2019-06-25 22:48:07 +0100
commit2c2541750ca4b7b604070c75c18d84be833c97d5 (patch)
treef5e63d941a1c7e2c2d4dff1d81c43fa2766308ae /src/std/string.gleam
parent96c20b8ebf8420fbba75c97fa08eaeb34e8dc394 (diff)
downloadgleam_stdlib-2c2541750ca4b7b604070c75c18d84be833c97d5.tar.gz
gleam_stdlib-2c2541750ca4b7b604070c75c18d84be833c97d5.zip
stdlib namespace std -> gleam
Diffstat (limited to 'src/std/string.gleam')
-rw-r--r--src/std/string.gleam36
1 files changed, 0 insertions, 36 deletions
diff --git a/src/std/string.gleam b/src/std/string.gleam
deleted file mode 100644
index 9eacb37..0000000
--- a/src/std/string.gleam
+++ /dev/null
@@ -1,36 +0,0 @@
-import std/iodata
-import std/list
-
-pub external fn length(String) -> Int = "string" "length"
-
-pub enum ParseError =
- | ParseError
-
-pub external fn lowercase(String) -> String = "string" "lowercase"
-
-pub external fn uppercase(String) -> String = "string" "uppercase"
-
-pub fn reverse(string) {
- string
- |> iodata:new
- |> iodata:reverse
- |> iodata:to_string
-}
-
-pub fn split(string, on) {
- string
- |> iodata:new
- |> iodata:split(_, on)
- |> list:map(_, iodata:to_string)
-}
-
-pub fn replace(string, pattern, with) {
- string
- |> iodata:new
- |> iodata:replace(_, pattern, with)
- |> iodata:to_string
-}
-
-pub fn append(s1, s2) {
- iodata:new(s1) |> iodata:append(_, s2) |> iodata:to_string(_)
-}