aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Jones <m.pricejones@gmail.com>2021-08-09 19:25:39 +0100
committerLouis Pilfold <louis@lpil.uk>2021-08-09 20:20:36 +0100
commitdda6adf8060854eaee7178c8c270c74b6a2dcd63 (patch)
treed668d0965327587ee0bd1e4c3f0f4f47d6d21fa2
parent9579b1c5623d1ef620a7e3521cd9a3d0443b10d6 (diff)
downloadgleam_stdlib-dda6adf8060854eaee7178c8c270c74b6a2dcd63.tar.gz
gleam_stdlib-dda6adf8060854eaee7178c8c270c74b6a2dcd63.zip
Remove unused named parameter
As rebar3 errors when attempting to run these tests. We might want to keep these anyway but they technically fail.
-rw-r--r--src/gleam/iterator.gleam2
-rw-r--r--src/gleam/list.gleam6
-rw-r--r--src/gleam/option.gleam2
-rw-r--r--src/gleam/result.gleam2
4 files changed, 6 insertions, 6 deletions
diff --git a/src/gleam/iterator.gleam b/src/gleam/iterator.gleam
index 67100e9..2421657 100644
--- a/src/gleam/iterator.gleam
+++ b/src/gleam/iterator.gleam
@@ -468,7 +468,7 @@ fn do_find(continuation: fn() -> Action(a), f: fn(a) -> Bool) -> Result(a, Nil)
/// > find(from_list([1, 2, 3]), fn(x) { x > 4 })
/// Error(Nil)
///
-/// > find(empty(), fn(x) { True })
+/// > find(empty(), fn(_) { True })
/// Error(Nil)
///
pub fn find(
diff --git a/src/gleam/list.gleam b/src/gleam/list.gleam
index b667953..62e69f9 100644
--- a/src/gleam/list.gleam
+++ b/src/gleam/list.gleam
@@ -371,7 +371,7 @@ fn do_try_map(
/// > try_map([1, 2, 3], fn(x) { Ok(x + 2) })
/// Ok([3, 4, 5])
///
-/// > try_map([1, 2, 3], fn(x) { Error(0) })
+/// > try_map([1, 2, 3], fn(_) { Error(0) })
/// Error(0)
///
/// > try_map([[1], [2, 3]], head)
@@ -674,7 +674,7 @@ pub fn fold_until(
/// > find([1, 2, 3], fn(x) { x > 4 })
/// Error(Nil)
///
-/// > find([], fn(x) { True })
+/// > find([], fn(_) { True })
/// Error(Nil)
///
pub fn find(
@@ -1131,7 +1131,7 @@ fn do_pop(haystack, predicate, checked) {
/// > pop([1, 2, 3], fn(x) { x > 4 })
/// Error(Nil)
///
-/// > pop([], fn(x) { True })
+/// > pop([], fn(_) { True })
/// Error(Nil)
///
pub fn pop(
diff --git a/src/gleam/option.gleam b/src/gleam/option.gleam
index 640662b..d8338a2 100644
--- a/src/gleam/option.gleam
+++ b/src/gleam/option.gleam
@@ -174,7 +174,7 @@ pub fn flatten(option: Option(Option(a))) -> Option(a) {
/// > then(Some(1), fn(x) { Some(#("a", x)) })
/// Some(#("a", 1))
///
-/// > then(Some(1), fn(x) { None })
+/// > then(Some(1), fn(_) { None })
/// None
///
/// > then(None, fn(x) { Some(x + 1) })
diff --git a/src/gleam/result.gleam b/src/gleam/result.gleam
index 574d71f..72f2675 100644
--- a/src/gleam/result.gleam
+++ b/src/gleam/result.gleam
@@ -120,7 +120,7 @@ pub fn flatten(result: Result(Result(a, e), e)) -> Result(a, e) {
/// > then(Ok(1), fn(x) { Ok(#("a", x)) })
/// Ok(#("a", 1))
///
-/// > then(Ok(1), fn(x) { Error("Oh no") })
+/// > then(Ok(1), fn(_) { Error("Oh no") })
/// Error("Oh no")
///
/// > then(Error(Nil), fn(x) { Ok(x + 1) })