Skip to content

Commit ec9cc3f

Browse files
voneidenlpil
authored andcommitted
Clarify documentation for 'list.group'
1 parent 240cc72 commit ec9cc3f

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/gleam/list.gleam

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -254,8 +254,7 @@ pub fn rest(list: List(a)) -> Result(List(a), Nil) {
254254
}
255255
}
256256

257-
/// Takes a list and groups the values by a key
258-
/// which is built from a key function.
257+
/// Groups the elements from the given list by the given key function.
259258
///
260259
/// Does not preserve the initial value order.
261260
///

0 commit comments

Comments
 (0)