aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMatti Eiden <snaipperi@gmail.com>2024-11-09 17:40:49 +0200
committerLouis Pilfold <louis@lpil.uk>2024-11-15 15:46:50 +0000
commitec9cc3f3a88ac1970d003140d3006ba15e2565f4 (patch)
treee2e90ad872ff832aa255892f1aeb9bb89dd1b4cd /src
parent240cc7248a7be3cbd9a5424719f7d8727c3da988 (diff)
downloadgleam_stdlib-ec9cc3f3a88ac1970d003140d3006ba15e2565f4.tar.gz
gleam_stdlib-ec9cc3f3a88ac1970d003140d3006ba15e2565f4.zip
Clarify documentation for 'list.group'
Diffstat (limited to 'src')
-rw-r--r--src/gleam/list.gleam3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/gleam/list.gleam b/src/gleam/list.gleam
index 61b3c7b..fa6ee46 100644
--- a/src/gleam/list.gleam
+++ b/src/gleam/list.gleam
@@ -254,8 +254,7 @@ pub fn rest(list: List(a)) -> Result(List(a), Nil) {
}
}
-/// Takes a list and groups the values by a key
-/// which is built from a key function.
+/// Groups the elements from the given list by the given key function.
///
/// Does not preserve the initial value order.
///