aboutsummaryrefslogtreecommitdiff
path: root/src/map.gleam
diff options
context:
space:
mode:
authorLouis Pilfold <louis@lpil.uk>2019-03-12 22:57:06 +0000
committerLouis Pilfold <louis@lpil.uk>2019-03-12 23:00:55 +0000
commit1ce9a14ba69c593bb40998a5a49d3f066a4aa07a (patch)
tree0a2767779f94f7f81738c6b35a2499e36718c736 /src/map.gleam
parentd445ce0d0c57f1acbc33e081c015750c78401067 (diff)
downloadgleam_stdlib-1ce9a14ba69c593bb40998a5a49d3f066a4aa07a.tar.gz
gleam_stdlib-1ce9a14ba69c593bb40998a5a49d3f066a4aa07a.zip
Remove unnecessary `let _ =` from Gleam
Diffstat (limited to 'src/map.gleam')
-rw-r--r--src/map.gleam12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/map.gleam b/src/map.gleam
index d5a662d..a8f024f 100644
--- a/src/map.gleam
+++ b/src/map.gleam
@@ -34,19 +34,19 @@ pub fn has_key(map, key) {
}
test has_key {
- let _ = []
+ []
|> from_list
|> has_key(_, 1)
|> expect:false
- let _ = [
+ [
{1, 0},
]
|> from_list
|> has_key(_, 1)
|> expect:true
- let _ = [
+ [
{4, 0},
{1, 0},
]
@@ -67,7 +67,7 @@ pub external fn new() -> Map(key, value)
= "maps" "new"
test new {
- let _ = new()
+ new()
|> size
|> expect:equal(_, 0)
@@ -83,7 +83,7 @@ test new {
// test from_record {
// let map = from_record({ name = "Jane" })
-// let _ = map
+// map
// |> size
// |> expect:equal(_, 1)
@@ -101,7 +101,7 @@ test fetch {
]
let map = from_list(proplist)
- let _ = map
+ map
|> fetch(_, 4)
|> expect:equal(_, Ok(0))