Skip to content

lib.lists.groupBy docs are inaccurate #127227

@whentze

Description

@whentze

Describe the bug
This line

/* Splits the elements of a list into many lists, using the return value of a predicate.

claims that groupBy returns a "list of lists", but it actually returns an attribute set whose values are lists.

To Reproduce
N/A, this is merely a doc bug.

Maintainer information:

# a list of nixpkgs attributes affected by the problem
attribute:
- lib.lists
# a list of nixos modules affected by the problem
module:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions