aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLouis Pilfold <louis@lpil.uk>2019-03-12 22:25:30 +0000
committerLouis Pilfold <louis@lpil.uk>2019-03-12 23:00:55 +0000
commitd445ce0d0c57f1acbc33e081c015750c78401067 (patch)
treefe1618c60a1e1f7aa2bf49645d3231da8ba9710e /src
parent447cd2ba25ac0414ed7604a49484a7590f40d202 (diff)
downloadgleam_stdlib-d445ce0d0c57f1acbc33e081c015750c78401067.tar.gz
gleam_stdlib-d445ce0d0c57f1acbc33e081c015750c78401067.zip
Improve seq ergonomics
Fixes https://github.com/lpil/gleam/issues/77
Diffstat (limited to 'src')
-rw-r--r--src/iodata.gleam9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/iodata.gleam b/src/iodata.gleam
index 4d81e38..7bdecec 100644
--- a/src/iodata.gleam
+++ b/src/iodata.gleam
@@ -24,6 +24,11 @@ test iodata {
|> append(_, " world!")
|> prepend(_, "H")
- expect:equal(to_string(iodata), "Hello, world!")
- expect:equal(byte_size(iodata), 13)
+ iodata
+ |> to_string
+ |> expect:equal(_, "Hello, world!")
+
+ iodata
+ |> byte_size
+ |> expect:equal(_, 13)
}