From ec9cc3f3a88ac1970d003140d3006ba15e2565f4 Mon Sep 17 00:00:00 2001 From: Matti Eiden Date: Sat, 9 Nov 2024 17:40:49 +0200 Subject: Clarify documentation for 'list.group' --- src/gleam/list.gleam | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src') 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. /// -- cgit v1.2.3