Skip to content

Proposal lo.Chunk for map #533

@kostya05983

Description

@kostya05983

Hello, I have a case where it would be great to have lo.chunk method for map. Below I provide an example of this case.

Sometimes, api can accept request with map, like:

var request map[string]RequestParams

where value RequestParams is parameters of request and key helps to identify your request in batch.

And api can accept maximum 50 elements in map.

Now if I need to process 500 items, I need to chunk it by myself and write additional code for chunking, it would be great to have such func in lo.
I could make a PR for it, if you agree to add it. Also, I could provide more details about solution and problem

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions